Sha256: d3a96e821ccb8aeca46e71124955eed4472a54f14b40435698462f14f5d13789
Contents?: true
Size: 829 Bytes
Versions: 8
Compression:
Stored size: 829 Bytes
Contents
<% if current_user.admin_of?(current_account) -%> <div class="current_credit_card"> We're currently charging the credit card ending in <%= current_account.credit_card.last_4 %>. <%= link_to "Change", edit_account_billing_path(current_account) %> </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 -%> There have been no invoices yet. <% end -%> </div> <% end -%>
Version data entries
8 entries across 8 versions & 1 rubygems