2014-12-09 22:32:54 +01:00
|
|
|
<div class="col-md-3">
|
2014-12-10 05:13:17 +01:00
|
|
|
<div class="thumbnail monopoly">
|
2015-02-12 14:39:58 +01:00
|
|
|
<h3 class="header" style="background-color: #<%= get_color(user)%>;" ><%= link_to user.full_name, user %></h3>
|
2014-12-09 22:32:54 +01:00
|
|
|
<div class="caption">
|
2014-12-10 09:20:12 +01:00
|
|
|
<%= image_tag(user.avatar , class: "img-circle avatar") %>
|
2014-12-09 22:32:54 +01:00
|
|
|
<p><strong>Name:</strong> <%= user.name %></p>
|
|
|
|
<p><strong>Last name:</strong> <%= user.last_name %></p>
|
|
|
|
<p><strong>Nickname:</strong> <%= user.nickname %></p>
|
2014-12-10 10:00:00 +01:00
|
|
|
<p><strong>Balance:</strong> <%= euro(user.balance) %></p>
|
2014-12-10 05:13:17 +01:00
|
|
|
</div>
|
2015-02-12 14:39:58 +01:00
|
|
|
<% if current_user.admin? %>
|
|
|
|
<div class="footer">
|
|
|
|
<p>
|
|
|
|
<%= link_to "Delete", user_path(user), method: :delete, class: "btn btn-danger", data: {confirm: 'Are you sure?'} %>
|
|
|
|
</p>
|
2014-12-10 05:13:17 +01:00
|
|
|
|
2015-02-12 14:39:58 +01:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-12-09 22:32:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|