From bc083c38c84efdcd384526c92deadd015348b7fe Mon Sep 17 00:00:00 2001 From: Mike Sutton Date: Fri, 1 Oct 2021 01:53:46 +0200 Subject: [PATCH] added back to last step --- app/views/application/_shepherd.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/application/_shepherd.html.erb b/app/views/application/_shepherd.html.erb index d52538e..9201acd 100644 --- a/app/views/application/_shepherd.html.erb +++ b/app/views/application/_shepherd.html.erb @@ -47,6 +47,9 @@ <% end %> buttons: [ <% if index == steps.size - 1 %> + <% if steps.size > 1 %> + { text: '<%= t('walter.back') %>', action: Walter.tours["<%= tour_name %>"].back, classes: 'shepherd-button-secondary' }, + <% end %> { text: '<%= t('walter.done') %>', action: Walter.tours["<%= tour_name %>"].complete }, <% else %> <% if index == 0 %>