X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fstore%2F_cart.html.erb;h=313d23e5cd072d276050de69dd43db8aa69ba85b;hb=2e4e591080e228dec676acf40b9e7bc4b044b8bc;hp=cc84043d9180968f7431ab16e7be41546fa38ca0;hpb=f9d45398338f9e5b2dabd768fcd793c4f81934f2;p=depot.git diff --git a/app/views/store/_cart.html.erb b/app/views/store/_cart.html.erb index cc84043..313d23e 100644 --- a/app/views/store/_cart.html.erb +++ b/app/views/store/_cart.html.erb @@ -8,6 +8,14 @@ -<% form_remote_tag :url => {:action => 'empty_cart'} do %> - <%= submit_tag "Empty cart" %> +<% unless @during_checkout %> +
+ <% form_remote_tag :url => {:action => 'checkout'} do %> + <%= submit_tag "Checkout" %> + <% end %> + + <% form_remote_tag :url => {:action => 'empty_cart'} do %> + <%= submit_tag "Empty cart" %> + <% end %> +
<% end %>