Sha256: 6f8f4ef3504834c3a50338e7a4fad1b3f00159e66851c7e23a298e4bd30a821d
Contents?: true
Size: 876 Bytes
Versions: 4
Compression:
Stored size: 876 Bytes
Contents
<% if current_user.admin_of?(current_account) -%> <div class="current_credit_card"> <h3>Billing Information</h3> <p>We're currently charging the credit card ending in <%= current_account.credit_card.last_4 %>. <%= link_to "Change", edit_account_billing_path(current_account) %></p> </div> <div class="billing_history"> <h3>Your Invoices</h3> <% if current_account.subscription.transactions.any? -%> <table> <tr> <th>Date</th> <th>Amount</th> </tr> <% current_account.subscription.transactions.each do |transaction| -%> <tr> <td><%= transaction.created_at.to_s(:short_date) %></td> <td><%= number_to_currency transaction.amount %></td> </tr> <% end -%> </table> <% else -%> <p>There have been no invoices yet.</p> <% end -%> </div> <% end -%>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.2.14 | app/views/billings/show.html.erb |
saucy-0.2.13 | app/views/billings/show.html.erb |
saucy-0.2.12 | app/views/billings/show.html.erb |
saucy-0.2.11 | app/views/billings/show.html.erb |