25 lines
703 B
Text
25 lines
703 B
Text
<%= render partial: 'flash' %>
|
|
<div class="row">
|
|
<div class="user_info">
|
|
<h2>
|
|
<%= @user.full_name %> - <%= @user.nickname %>
|
|
<%= link_to "edit" , edit_user_registration_path %>
|
|
</h2>
|
|
<h4>Balance: <%= euro(@user.balance) %></h4>
|
|
</div>
|
|
|
|
<% if @user.orders.any? %>
|
|
<div class="col-md-6">
|
|
<h3>Orders (<%= @user.orders_count %>)</h3>
|
|
<%= render @orders %>
|
|
<%= will_paginate @orders %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="col-md-6">
|
|
<h3>Products</h3>
|
|
<%= render partial: "products/product_row", collection: @products, as: :product %>
|
|
<h4>Categories</h4>
|
|
<%= render partial: "products/category", collection: @categories %>
|
|
</div>
|
|
</div>
|