Move privacy and TOS to Angular

Fixes #1529
This commit is contained in:
Joseph Schorr 2016-06-09 13:45:37 -04:00
parent 12c7f20ae9
commit 8177c39aff
7 changed files with 202 additions and 228 deletions

View file

@ -169,6 +169,12 @@ quayApp.config(['$routeProvider', '$locationProvider', 'pages', function($routeP
// Security
.route('/security/', 'security')
// TOS
.route('/tos', 'tos')
// Privacy
.route('/privacy', 'privacy')
// Landing Page
.route('/', 'landing')

View file

@ -0,0 +1,10 @@
(function() {
/**
* Privacy page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('privacy', 'privacy.html', null, {
'title': 'Privacy Policy'
});
}]);
}());

10
static/js/pages/tos.js Normal file
View file

@ -0,0 +1,10 @@
(function() {
/**
* TOS page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('tos', 'tos.html', null, {
'title': 'Terms of Service'
});
}]);
}());