Sha256: 99f7b258418878e21092e452c0e78c3669a6249d37e2e9e647b3aa14589b239f

Contents?: true

Size: 818 Bytes

Versions: 3

Compression:

Stored size: 818 Bytes

Contents

<%= render 'header' %>

<h1>Payments</h1>

<table class="table table-responsive">
  <thead>
    <tr>
      <th>Amount</th>
      <th>ID</th>
      <th>Customer</th>
      <th>Date</th>
    </tr>
  </thead>

  <tbody>
    <% @payments.each do |payment| %>
      <tr>
        <td>
          <%= link_to tang.admin_payment_path(payment) do %>
            <%= number_to_currency(payment.amount.to_f / 100.0) %>
            <%= payment.currency.upcase %>
          <% end %>
        </td>
        <td><%= payment.stripe_id %></td>
        <td><%= payment.invoice.customer.email if payment.invoice.present? && payment.invoice.customer.present? %></td>
        <td><%= payment.created.strftime('%Y/%m/%d %H:%M:%S') %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate @payments %>

<%= render 'footer' %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tang-0.2.2 app/views/tang/admin/payments/index.html.erb
tang-0.2.1 app/views/tang/admin/payments/index.html.erb
tang-0.2.0 app/views/tang/admin/payments/index.html.erb