Sha256: e24524e87cffbe3635f863b1fd9087182562a3990b922e34fb865ed7278b097f
Contents?: true
Size: 971 Bytes
Versions: 9
Compression:
Stored size: 971 Bytes
Contents
<h1><%= t("my_account") %></h1> <% hook :account_summary do %> <table> <tr> <td><%= t("email") %>:</td> <td> <%= @user.email %> </td> </tr> </table> <p><%= link_to t('edit'), edit_object_url %></p> <% end %> <% hook :account_my_orders do %> <h2><%= t("my_orders") %></h2> <table class="order-summary" width="545"> <thead> <tr> <th><%= t("order_number") %></th> <th><%= t("order_date") %></th> <th><%= t("status") %></th> <th><%= t("customer") %></th> <th><%= t("total") %></th> </tr> </thead> <tbody> <% @orders.each do |order| %> <tr class="<%= cycle('even', 'odd') %>"> <td><%= link_to order.number, order_url(order) %></td> <td><%=order.created_at.to_date%></td> <td><%= t(order.state).titleize %></td> <td><%= order.user.email if order.user %></td> <td><%= number_to_currency order.total %></td> </tr> <% end %> </tbody> </table> <br /> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems