Sha256: 9660f1b4f6280cb2c8988c98c86069ba9ae51d0f2cecfcca0fe839754e1d282a

Contents?: true

Size: 809 Bytes

Versions: 6

Compression:

Stored size: 809 Bytes

Contents

<%= render 'header' %>

<h1>Customers</h1>

<table class="table table-responsive">
  <thead>
    <tr>
      <th>Customer</th>
      <th>Card</th>
      <th>Created</th>
    </tr>
  </thead>

  <tbody>
    <% @customers.each do |customer| %>
      <tr>
        <td>
          <%= link_to tang.admin_customer_path(customer) do %>
            <%= customer.email %>
            <%= "- #{customer.stripe_id}" if customer.stripe_id.present? %>
          <% end %>
        </td>
        <td><%= "#{customer.card.brand} – #{customer.card.last4} – #{customer.card.exp_month}/#{customer.card.exp_year}" if customer.card.present? %></td>
        <td><%= customer.created_at.strftime('%Y/%m/%d %H:%m:%S') %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate @customers %>

<%= render 'footer' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tang-0.2.2 app/views/tang/admin/customers/index.html.erb
tang-0.2.1 app/views/tang/admin/customers/index.html.erb
tang-0.2.0 app/views/tang/admin/customers/index.html.erb
tang-0.1.0 app/views/tang/admin/customers/index.html.erb
tang-0.0.9 app/views/tang/admin/customers/index.html.erb
tang-0.0.8 app/views/tang/admin/customers/index.html.erb