Browse Source

Add PayPal icon + details to order_details partial

1-2-stable-sysmocom
Brian Quinn 9 years ago
parent
commit
e6801863a6
  1. 1
      .gitignore
  2. BIN
      app/assets/images/paypal.png
  3. 16
      app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface
  4. BIN
      public/images/paypal111.gif

1
.gitignore

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

BIN
app/assets/images/paypal.png

After

Width: 32  |  Height: 20  |  Size: 1.1 KiB

16
app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface

@ -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 %>

BIN
public/images/paypal111.gif

Before

Width: 111  |  Height: 37  |  Size: 1.4 KiB

Loading…
Cancel
Save