projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decoupled carts and orders
[depot.git]
/
app
/
views
/
store
/
_cart.html.erb
diff --git
a/app/views/store/_cart.html.erb
b/app/views/store/_cart.html.erb
index 43e9a162a543f653864065095d9697a81a3e5038..313d23e5cd072d276050de69dd43db8aa69ba85b 100644
(file)
--- a/
app/views/store/_cart.html.erb
+++ b/
app/views/store/_cart.html.erb
@@
-8,10
+8,14
@@
</tr>
</table>
</tr>
</table>
-<% form_remote_tag :url => {:action => 'checkout'} do %>
- <%= submit_tag "Checkout" %>
-<% end %>
+<% unless @during_checkout %>
+ <div id="checkout_buttons">
+ <% form_remote_tag :url => {:action => 'checkout'} do %>
+ <%= submit_tag "Checkout" %>
+ <% end %>
-<% form_remote_tag :url => {:action => 'empty_cart'} do %>
- <%= submit_tag "Empty cart" %>
+ <% form_remote_tag :url => {:action => 'empty_cart'} do %>
+ <%= submit_tag "Empty cart" %>
+ <% end %>
+ </div>
<% end %>
<% end %>