Add PayPal icon + details to order_details partial

This commit is contained in:
Brian Quinn 2012-07-23 14:07:19 +01:00
parent ea2084ec04
commit e6801863a6
4 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.swp
.DS_store
spec/test_app
spec/dummy
.rvmrc

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,16 @@
<!--
insert_bottom '.payment-info'
original '9d4ef160bd508a47f906d7419c33cfc7eefc501d'
-->
<% if order.payment && order.payment.source.class.to_s == 'Spree::PaypalAccount' %>
<span class="cc-type">
<%= image_tag "paypal.png" %>
<%= order.payment.source.payer_status.to_s.capitalize %>
</span>
<br />
<span class="full-name">
<%= order.payment.source.email %>
</span>
<% end %>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB