Sha256: b125bd199b23bca6dd41d494439003d2917e1433789d21cd4f0305302c9ad76f
Contents?: true
Size: 1.15 KB
Versions: 312
Compression:
Stored size: 1.15 KB
Contents
<h1>Order History</h1> <% if @invoices.count > 0 %> <table class='invoices'> <tr> <th>Date</th> <th>Order Number</th> <th>Total</th> <th>Status</th> </tr> <% @invoices.each do |invoice| %> <tr onclick="window.location='/my-account/invoices/<%= invoice.id %>';"> <td><%= invoice.date_created ? invoice.date_created.strftime('%m/%d/%Y') : '' %></td> <td><%= invoice.invoice_number %></td> <td><%= number_to_currency(invoice.total) %></td> <td><%= invoice.status.capitalize %></td> </tr> <% end %> </table> <% else %> <p>You don't have any invoices yet.<p> <% end %> <p><input type='button' value='< Back to My Account' class='btn' onclick="window.location='/my-account';" /></p> <% content_for :caboose_css do %> <style type='text/css'> table.invoices { border-collapse: collapse; margin-bottom: 20px; } table.invoices th { margin: 0; padding: 10px; border: #000 0px solid; font-weight: bold; text-align: center; } table.invoices td { margin: 0; padding: 10px; border: #000 1px solid; } table.invoices tr:hover td { background: #ccc; cursor: pointer; cursor: hand; } </style> <% end %>
Version data entries
312 entries across 312 versions & 1 rubygems