Sha256: e0f7937212d3d78fee8c736ca8ae2d5ffdcb671d4d745dea6c565f8207ec391f

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 Bytes

Contents

<h1> Payments </h1>

<% if @payments.present? %>

  <table id="latest-payments" class="table table-striped">
    <thead>
      <tr>
        <th> Customer Email </th>
        <th> Amount</th>
        <th> Created at</th>
      </tr>

      <tbody>
        <% @payments.each do |payment| %>
          <tr>
            <td class="customer-email"><%= payment.customer_email %></td>
            <td class="amount"><%= number_to_currency(payment.amount) %></td>
            <td class="created_at"><%= distance_of_time_in_words_to_now(payment.created_at) %></td>
          </tr>
        <% end %>  
      </tbody>
    </thead>

  </table>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jackpot-0.0.3 app/views/jackpot/payments/index.html.erb