Add titles and descriptions to the pages

This commit is contained in:
Joseph Schorr 2015-02-23 14:23:54 -05:00
parent 078f9c206f
commit b66551ec48
15 changed files with 50 additions and 15 deletions

View file

@ -3,6 +3,9 @@
* About page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('about', 'about.html');
pages.create('about', 'about.html', null, {
'title': 'About Us',
'description': 'About Quay.io'
});
}]);
}())

View file

@ -3,7 +3,9 @@
* Page for confirming an invite to a team.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('confirm-invite', 'confirm-invite.html', ConfirmInviteCtrl);
pages.create('confirm-invite', 'confirm-invite.html', ConfirmInviteCtrl, {
'title': 'Confirm Invitation'
});
}]);
function ConfirmInviteCtrl($scope, $location, UserService, ApiService, NotificationService) {

View file

@ -3,7 +3,9 @@
* Contact details page. The contacts are configurable.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('contact', 'contact.html', ContactCtrl);
pages.create('contact', 'contact.html', ContactCtrl, {
'title': 'Contact Us'
});
}]);
function ContactCtrl($scope, Config) {

View file

@ -3,7 +3,10 @@
* Page for creating a new organization.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('new-organization', 'new-organization.html', NewOrgCtrl);
pages.create('new-organization', 'new-organization.html', NewOrgCtrl, {
'title': 'New Organization',
'description': 'Create a new organization to manage teams and permissions'
});
}]);
function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, PlanService, ApiService, CookieService, Features) {

View file

@ -3,7 +3,10 @@
* Page to create a new repository.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('new-repo', 'new-repo.html', NewRepoCtrl);
pages.create('new-repo', 'new-repo.html', NewRepoCtrl, {
'title': 'New Repository',
'description': 'Create a new Docker repository'
});
}]);
function NewRepoCtrl($scope, $location, $http, $timeout, UserService, ApiService, PlanService, TriggerService, Features) {

View file

@ -3,7 +3,10 @@
* Page which displays the list of organizations of which the user is a member.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('organizations', 'organizations.html', OrgsCtrl);
pages.create('organizations', 'organizations.html', OrgsCtrl, {
'title': 'View Organizations',
'description': 'View and manage your organizations'
});
}]);
function OrgsCtrl($scope, UserService) {

View file

@ -3,7 +3,9 @@
* The plans/pricing page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('plans', 'plans.html', PlansCtrl);
pages.create('plans', 'plans.html', PlansCtrl, {
'title': 'Plans and Pricing'
});
}]);
function PlansCtrl($scope, $location, UserService, PlanService, $routeParams) {

View file

@ -3,7 +3,10 @@
* Repository listing page. Shows all repositories for all visibile namespaces.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('repo-list', 'repo-list.html', RepoListCtrl);
pages.create('repo-list', 'repo-list.html', RepoListCtrl, {
'title': 'Repositories',
'description': 'View and manage Docker repositories'
});
}]);
function RepoListCtrl($scope, $sanitize, Restangular, UserService, ApiService) {

View file

@ -3,6 +3,8 @@
* Security page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('security', 'security.html');
pages.create('security', 'security.html', null, {
'title': 'Security'
});
}]);
}())

View file

@ -6,7 +6,8 @@
angular.module('quayPages').config(['pages', function(pages) {
pages.create('setup', 'setup.html', SetupCtrl,
{
'newLayout': true
'newLayout': true,
'title': 'Enterprise Registry Setup'
},
// Note: This page has already been converted, but also needs to be available in the old layout

View file

@ -3,7 +3,9 @@
* Sign in page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('signin', 'signin.html', SignInCtrl);
pages.create('signin', 'signin.html', SignInCtrl, {
'title': 'Sign In'
});
}]);
function SignInCtrl($scope, $location) {

View file

@ -5,7 +5,8 @@
angular.module('quayPages').config(['pages', function(pages) {
pages.create('superuser', 'super-user.html', SuperuserCtrl,
{
'newLayout': true
'newLayout': true,
'title': 'Enterprise Registry Management'
},
// Note: This page has already been converted, but also needs to be available in the old layout

View file

@ -3,7 +3,10 @@
* The site tour page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('tour', 'tour.html', TourCtrl);
pages.create('tour', 'tour.html', TourCtrl, {
'title': 'Feature Tour',
'description': 'Take a tour of Quay.io\'s features'
});
}]);
function TourCtrl($scope, $location) {

View file

@ -3,7 +3,10 @@
* Interactive tutorial page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('tutorial', 'tutorial.html', TutorialCtrl);
pages.create('tutorial', 'tutorial.html', TutorialCtrl, {
'title': 'Tutorial',
'description': 'Basic tutorial on using Docker with Quay.io'
});
}]);
function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Config) {

View file

@ -3,7 +3,9 @@
* User admin/settings page.
*/
angular.module('quayPages').config(['pages', function(pages) {
pages.create('user-admin', 'user-admin.html', UserAdminCtrl);
pages.create('user-admin', 'user-admin.html', UserAdminCtrl, {
'title': 'User Settings'
});
}]);
function UserAdminCtrl($scope, $timeout, $location, ApiService, PlanService, UserService, CookieService, KeyService,