Merge pull request #88 from coreos-inc/tutfix

Tutorial improvements
This commit is contained in:
Jimmy Zelinskie 2015-06-04 14:20:58 -04:00
commit 6392f32f0d
8 changed files with 28 additions and 15 deletions

View file

@ -3645,16 +3645,21 @@ pre.command:before {
} }
.repo-name-small { .repo-name-small {
background: none repeat scroll 0 0 #D9EDF7; margin-left: 2px;
border-radius: 10px; margin-right: 2px;
margin-left: 6px;
margin-right: 6px;
display: inline-block; display: inline-block;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
padding: 4px 8px; padding: 4px 8px;
} }
.user-enter-box {
padding: 10px;
margin-bottom: 20px;
border: 1px solid #DDE7ED;
background: #F0FAFF;
}
.file-drop { .file-drop {
padding: 10px; padding: 10px;
margin: 10px; margin: 10px;

View file

@ -14,7 +14,7 @@
</div> </div>
</div> </div>
<div class="controls"> <div class="controls" ng-show="(hasNextStep && !step.signal) || (!hasNextStep && !inline)">
<button class="btn btn-primary" ng-click="next()" ng-show="hasNextStep && !step.signal">Next</button> <button class="btn btn-primary" ng-click="next()" ng-show="hasNextStep && !step.signal">Next</button>
<button class="btn btn-primary" ng-click="stop()" ng-show="!hasNextStep && !inline">Done</button> <button class="btn btn-primary" ng-click="stop()" ng-show="!hasNextStep && !inline">Done</button>
</div> </div>

View file

@ -13,7 +13,7 @@
}, ['old-layout']); }, ['old-layout']);
}]); }]);
function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Config) { function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Config, Features) {
// Default to showing sudo on all commands if on linux. // Default to showing sudo on all commands if on linux.
var showSudo = navigator.appVersion.indexOf("Linux") != -1; var showSudo = navigator.appVersion.indexOf("Linux") != -1;
@ -149,8 +149,8 @@
'overlayable': true 'overlayable': true
}, },
{ {
'content': 'To view the permissions for a repository, click on the gear tab', 'content': 'To view the permissions for a repository, click on the Gear tab',
'element': '#settingTab', 'element': '#settingsTab',
'overlayable': true, 'overlayable': true,
'signal': AngularTourSignals.elementVisible('*[id="repoPermissions"]') 'signal': AngularTourSignals.elementVisible('*[id="repoPermissions"]')
}, },
@ -177,17 +177,20 @@
'content': 'Repositories can be automatically populated in response to a Dockerfile build. To view the build settings for a repository, click on the builds tab', 'content': 'Repositories can be automatically populated in response to a Dockerfile build. To view the build settings for a repository, click on the builds tab',
'element': '#buildsTab', 'element': '#buildsTab',
'overlayable': true, 'overlayable': true,
'signal': AngularTourSignals.elementVisible('*[id="repoBuilds"]') 'signal': AngularTourSignals.elementVisible('*[id="repoBuilds"]'),
'skip': !Features.BUILD_SUPPORT
}, },
{ {
'content': 'New build triggers can be created by clicking the "Create Build Trigger" button.', 'content': 'New build triggers can be created by clicking the "Create Build Trigger" button.',
'element': '#addBuildTrigger', 'element': '#addBuildTrigger',
'overlayable': true 'overlayable': true,
'skip': !Features.BUILD_SUPPORT
}, },
{ {
'content': 'The full build history can always be referenced and filtered in the builds list.', 'content': 'The full build history can always be referenced and filtered in the builds list.',
'element': '#repoBuilds', 'element': '#repoBuilds',
'overlayable': true 'overlayable': true,
'skip': !Features.BUILD_SUPPORT
}, },
{ {
'templateUrl': '/static/tutorial/done.html', 'templateUrl': '/static/tutorial/done.html',

View file

@ -159,6 +159,10 @@ angular.module("angular-tour", [])
} }
$scope.step = $scope.tour.steps[stepIndex]; $scope.step = $scope.tour.steps[stepIndex];
if ($scope.step.skip) {
$scope.setStepIndex(stepIndex + 1);
return;
}
fireMixpanelEvent(); fireMixpanelEvent();

View file

@ -14,7 +14,7 @@ CONTAINER ID IMAGE COMMAND CREATED
<var class="var1">07f2065197ef</var> ubuntu:12.04 echo fun 31 seconds ago <var class="var1">07f2065197ef</var> ubuntu:12.04 echo fun 31 seconds ago
</pre> </pre>
<div class="alert alert-info"> <div class="user-enter-box">
<div class="control-group"> <div class="control-group">
<label class="control-label" for="containerId">Enter the container ID returned:</label> <label class="control-label" for="containerId">Enter the container ID returned:</label>
<div class="form-inline"> <div class="form-inline">

View file

@ -1,4 +1,4 @@
<div class="alert alert-info"> <div class="user-enter-box">
<div class="control-group"> <div class="control-group">
<label class="control-label" for="containerId">Enter a repository name:</label> <label class="control-label" for="containerId">Enter a repository name:</label>
<div class="form-inline"> <div class="form-inline">

View file

@ -1,5 +1,5 @@
<div> <div>
<div class="co-alert co-alert-info"> <div class="user-enter-box">
<div class="checkbox" style="margin: 0px;"> <div class="checkbox" style="margin: 0px;">
<input name="showSudo" type="checkbox" ng-model="tour.tourScope.showSudo" style="display: inline-block; margin-left: 10px; margin-right: 10px;"> <input name="showSudo" type="checkbox" ng-model="tour.tourScope.showSudo" style="display: inline-block; margin-left: 10px; margin-right: 10px;">
<label for="showSudo" style="padding-left: 30px;"> <label for="showSudo" style="padding-left: 30px;">

View file

@ -1,10 +1,11 @@
<p>This tutorial will walk you step-by-step through using <span class="registry-name"></span>, covering: <p>This tutorial will walk you step-by-step through using <span class="registry-name"></span>, covering:
<ul> <ul>
<li>Logging into <span class="registry-name"></span> from Docker</li> <li>Logging into <span class="registry-name"></span> from the Docker CLI</li>
<li>Starting a container</li> <li>Starting a container</li>
<li>Creating images from a container</li> <li>Creating images from a container</li>
<li>Pushing a repository to <span class="registry-name"></span></li> <li>Pushing a repository to <span class="registry-name"></span></li>
<li>Viewing a repository</li> <li>Viewing a repository</li>
<li quay-require="['BUILD_SUPPORT']">Setting up build triggers</li>
<li>Changing a repository's permissions</li> <li>Changing a repository's permissions</li>
</ul> </ul>
</p> </p>