Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6b7a1b8

Browse files
chore(docs/app/tutorials): improve helper directives
1 parent 7b0c5b9 commit 6b7a1b8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/app/src/tutorials.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ angular.module('tutorials', [])
2222
element.addClass('tutorial-nav');
2323
element.append(templateMerge(
2424
'<a href="tutorial/{{prev}}"><li class="btn btn-primary"><i class="glyphicon glyphicon-step-backward"></i> Previous</li></a>\n' +
25-
'<a href="http://angular.github.com/angular-phonecat/step-{{seq}}/app"><li class="btn btn-primary"><i class="glyphicon glyphicon-play"></i> Live Demo</li></a>\n' +
25+
'<a href="http://angular.github.io/angular-phonecat/step-{{seq}}/app"><li class="btn btn-primary"><i class="glyphicon glyphicon-play"></i> Live Demo</li></a>\n' +
2626
'<a href="https://github.com/angular/angular-phonecat/compare/step-{{diffLo}}...step-{{diffHi}}"><li class="btn btn-primary"><i class="glyphicon glyphicon-search"></i> Code Diff</li></a>\n' +
2727
'<a href="tutorial/{{next}}"><li class="btn btn-primary">Next <i class="glyphicon glyphicon-step-forward"></i></li></a>', props));
2828
}
@@ -36,13 +36,15 @@ angular.module('tutorials', [])
3636
'step': '@docTutorialReset'
3737
},
3838
template:
39-
'<div ng-hide="show">' +
40-
'<p><a href="" ng-click="show=true;$event.stopPropagation()">Workspace Reset Instructions ➤</a></p>' +
39+
'<p><a href="" ng-click="show=!show;$event.stopPropagation()">Workspace Reset Instructions ➤</a></p>\n' +
40+
'<div class="alert alert-info" ng-show="show">\n' +
41+
' <p>Reset the workspace to step {{step}}.</p>' +
42+
' <p><pre>git checkout -f step-{{step}}</pre></p>\n' +
43+
' <p>Refresh your browser or check out this step online: '+
44+
'<a href="http://angular.github.io/angular-phonecat/step-{{step}}/app">Step {{step}} Live Demo</a>.</p>\n' +
4145
'</div>\n' +
42-
'<div class="tabbable" ng-show="show">\n' +
43-
' <li><p>Reset the workspace to step {{step}}.</p>' +
44-
' <pre>git checkout -f step-{{step}}</pre></li>\n' +
45-
' <li><p>Refresh your browser or check the app out on <a href="http://angular.github.com/angular-phonecat/step-{{step}}/app">Angular\'s server</a>.</p></li>\n' +
46-
'</div>\n'
46+
'<p>The most important changes are listed below. You can see the full diff on ' +
47+
'<a ng-href="https://github.com/angular/angular-phonecat/compare/step-{{step ? (step - 1): \'0~1\'}}...step-{{step}}">GitHub</a>\n' +
48+
'</p>'
4749
};
4850
});

0 commit comments

Comments
 (0)