Sha256: 65909621939c4e9976c6ffa5f2a17e21a0f8e701b2192194a0d8e75299898072
Contents?: true
Size: 1.52 KB
Versions: 4
Compression:
Stored size: 1.52 KB
Contents
<h1><%= t("my_account") %></h1> <%= hook :account_summary do %> <div class="span8" style="margin-left: 0"> <table class="table table-bordered"> <tr> <td><%= t("email") %>:</td> <td> <%= @user.email %> </td> </tr> </table> </div> <div class="row"></div> <%= link_to edit_account_path, :class => "btn btn-mini" do %> <i class="icon-edit"></i> <%= t('edit') %> <% end %> <br><br> <% end %> <%= hook :account_my_orders do %> <h2><%= t("my_orders") %></h2> <% if @orders.present? %> <table class="table table-bordered" width="545"> <thead> <tr> <th><%= t("order_number") %></th> <th><%= t("order_date") %></th> <th><%= t("status") %></th> <th><%= t("payment_state") %></th> <th><%= t("shipment_state") %></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><%= t("payment_states.#{order.payment_state}") if order.payment_state %></td> <td><%= t("shipment_states.#{order.shipment_state}") if order.shipment_state %></td> <td><%= number_to_currency order.total %></td> </tr> <% end %> </tbody> </table> <% else %> <p><%= t(:you_have_no_orders_yet) %></p> <% end %> <br /> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems