tap/app/views/users/_user.html.erb

19 lines
702 B
Text
Raw Normal View History

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">
<h3 class="header" style="background-color: #<%= get_color(user)%>;" ><%= user.full_name %></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>
<div class="footer">
2014-12-09 22:32:54 +01:00
<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
2014-12-09 22:32:54 +01:00
</div>
</div>
</div>