Skip to content

Commit

Permalink
add back button to each step
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Keairns <[email protected]>

Pull request: #483
Approved by: juliandunn
  • Loading branch information
Ryan Keairns authored and thesentinels committed May 5, 2016
1 parent 79c5a5d commit eb34db8
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions www/source/stylesheets/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// 2. Code Overrides
// 3. Buttons
// 4. Typography
// 5. Links


// 1. Global
Expand Down Expand Up @@ -106,3 +107,11 @@ code {
h2:not(:first-child) {
margin-top: rem-calc(40);
}

// 5. Links
// ---------

.back-link {
display: block;
margin-top: rem-calc(10);
}
3 changes: 3 additions & 0 deletions www/source/try/10.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ code
#success
= partial "partials/advance_button" do
| Next - Bind services

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/2.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ code
#success
= partial "partials/advance_button" do
| Next - Make a configuration change

= link_to "/try/", :class => "back-link" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/3.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ code
#success
= partial "partials/advance_button" do
| Next - Update the configuration file

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/4.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ code
#success
= partial "partials/advance_button" do
| Next - Apply changes through discovery

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/5.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,6 @@ code
#success
= partial "partials/advance_button" do
| Next - Set up a service group

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/6.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ code
#success
= partial "partials/advance_button" do
| Next - Connect additional services

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/7.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,6 @@ code
#success
= partial "partials/advance_button" do
| Finish - Next Steps

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/8.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ p

a.button.cta href="/tutorials/getting-started-overview/"
| Tutorial - Getting Started with Habitat

= partial "partials/previous_button" do
| Back to previous step
3 changes: 3 additions & 0 deletions www/source/try/9.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ code
#success
= partial "partials/advance_button" do
| Finish - Next Steps

= partial "partials/previous_button" do
| Back to previous step
2 changes: 2 additions & 0 deletions www/source/try/partials/_previous_button.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
= link_to "/try/#{current_page.data.step - 1}", :class => "back-link" do
= yield

0 comments on commit eb34db8

Please sign in to comment.