Replace references seen in the enterprise version to "Quay.io" with a config-pulled value

This commit is contained in:
Joseph Schorr 2014-08-08 13:50:04 -04:00
parent 5d4a6fc279
commit 6f804c222a
18 changed files with 84 additions and 60 deletions

View file

@ -62,14 +62,14 @@ function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Conf
var showSudo = navigator.appVersion.indexOf("Linux") != -1;
$scope.tour = {
'title': 'Quay.io Tutorial',
'title': Config.REGISTRY_TITLE_SHORT + ' Tutorial',
'initialScope': {
'showSudo': showSudo,
'domainName': Config.getDomain()
},
'steps': [
{
'title': 'Welcome to the Quay.io tutorial!',
'title': 'Welcome to the ' + Config.REGISTRY_TITLE_SHORT + ' tutorial!',
'templateUrl': '/static/tutorial/welcome.html'
},
{
@ -84,7 +84,7 @@ function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Conf
}
},
{
'title': 'Step 1: Login to Quay.io',
'title': 'Step 1: Login to ' + Config.REGISTRY_TITLE,
'templateUrl': '/static/tutorial/docker-login.html',
'signal': AngularTourSignals.serverEvent('/realtime/user/subscribe?events=docker-cli',
function(message) {
@ -103,7 +103,7 @@ function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Conf
'templateUrl': '/static/tutorial/create-image.html'
},
{
'title': 'Step 4: Push the image to Quay.io',
'title': 'Step 4: Push the image to ' + Config.REGISTRY_TITLE,
'templateUrl': '/static/tutorial/push-image.html',
'signal': AngularTourSignals.serverEvent('/realtime/user/subscribe?events=docker-cli',
function(message, tourScope) {
@ -126,7 +126,7 @@ function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Conf
'waitMessage': "Waiting for repository push to complete"
},
{
'title': 'Step 5: View the repository on Quay.io',
'title': 'Step 5: View the repository on ' + Config.REGISTRY_TITLE,
'templateUrl': '/static/tutorial/view-repo.html',
'signal': AngularTourSignals.matchesLocation('/repository/'),
'overlayable': true,
@ -1292,10 +1292,11 @@ function RepoAdminCtrl($scope, Restangular, ApiService, KeyService, $routeParams
return imageUrl;
case 'md':
return '[![Docker Repository on Quay.io](' + imageUrl + ' "Docker Repository on Quay.io")](' + linkUrl + ')';
return '[![Docker Repository on ' + Config.REGISTRY_TITLE_SHORT + '](' + imageUrl +
' "Docker Repository on ' + Config.REGISTRY_TITLE_SHORT + '")](' + linkUrl + ')';
case 'asciidoc':
return 'image:' + imageUrl + '["Docker Repository on Quay.io", link="' + linkUrl + '"]';
return 'image:' + imageUrl + '["Docker Repository on ' + Config.REGISTRY_TITLE_SHORT + '", link="' + linkUrl + '"]';
}
return '';