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>
|
2015-03-19 16:22:55 +01:00
|
|
|
<p><strong>Debt:</strong> <%= euro(user.debt) %></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>
|