Merge pull request #1763 from coreos-inc/quay-title-seo

Change default title to include Container Registry and fix title usage
This commit is contained in:
josephschorr 2016-08-29 11:29:26 -04:00 committed by GitHub
commit 3f459523c4
3 changed files with 5 additions and 5 deletions

View file

@ -239,7 +239,7 @@ if (window.__config && window.__config.SENTRY_PUBLIC_DSN) {
quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanService', '$http', '$timeout', 'CookieService', 'Features', '$anchorScroll', 'UtilService', 'MetaService', 'UIService', quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanService', '$http', '$timeout', 'CookieService', 'Features', '$anchorScroll', 'UtilService', 'MetaService', 'UIService',
function($location, $rootScope, Restangular, UserService, PlanService, $http, $timeout, CookieService, Features, $anchorScroll, UtilService, MetaService, UIService) { function($location, $rootScope, Restangular, UserService, PlanService, $http, $timeout, CookieService, Features, $anchorScroll, UtilService, MetaService, UIService) {
var defaultTitle = window.__config['REGISTRY_TITLE'] || 'Quay'; var defaultTitle = window.__config['REGISTRY_TITLE'] || 'Quay Container Registry';
// Handle session security. // Handle session security.
Restangular.setDefaultRequestParams(['post', 'put', 'remove', 'delete'], {'_csrf_token': window.__token || ''}); Restangular.setDefaultRequestParams(['post', 'put', 'remove', 'delete'], {'_csrf_token': window.__token || ''});

View file

@ -37,7 +37,7 @@
} }
}, },
{ {
'title': 'Step 1: Login to ' + Config.REGISTRY_TITLE, 'title': 'Step 1: Login to ' + Config.REGISTRY_TITLE_SHORT,
'templateUrl': '/static/tutorial/docker-login.html', 'templateUrl': '/static/tutorial/docker-login.html',
'signal': AngularTourSignals.serverEvent('/realtime/user/subscribe?events=docker-cli', 'signal': AngularTourSignals.serverEvent('/realtime/user/subscribe?events=docker-cli',
function(message) { function(message) {
@ -56,7 +56,7 @@
'templateUrl': '/static/tutorial/create-image.html' 'templateUrl': '/static/tutorial/create-image.html'
}, },
{ {
'title': 'Step 4: Push the image to ' + Config.REGISTRY_TITLE, 'title': 'Step 4: Push the image to ' + Config.REGISTRY_TITLE_SHORT,
'templateUrl': '/static/tutorial/push-image.html', 'templateUrl': '/static/tutorial/push-image.html',
'signal': AngularTourSignals.serverEvent('/realtime/user/subscribe?events=docker-cli', 'signal': AngularTourSignals.serverEvent('/realtime/user/subscribe?events=docker-cli',
function(message, tourScope) { function(message, tourScope) {
@ -79,7 +79,7 @@
'waitMessage': "Waiting for repository push to complete" 'waitMessage': "Waiting for repository push to complete"
}, },
{ {
'title': 'Step 5: View the repository on ' + Config.REGISTRY_TITLE, 'title': 'Step 5: View the repository on ' + Config.REGISTRY_TITLE_SHORT,
'templateUrl': '/static/tutorial/view-repo.html', 'templateUrl': '/static/tutorial/view-repo.html',
'signal': AngularTourSignals.matchesLocation('/repository/'), 'signal': AngularTourSignals.matchesLocation('/repository/'),
'overlayable': true, 'overlayable': true,

View file

@ -62,7 +62,7 @@ function(Config, Features, VulnerabilityService) {
var methods = [ var methods = [
{ {
'id': 'quay_notification', 'id': 'quay_notification',
'title': Config.REGISTRY_TITLE + ' Notification', 'title': Config.REGISTRY_TITLE_SHORT + ' Notification',
'icon': 'quay-icon', 'icon': 'quay-icon',
'fields': [ 'fields': [
{ {