This commit is contained in:
ohsab 2014-12-10 05:24:30 +01:00
parent addf41999a
commit e1ee373b92

View file

@ -3,9 +3,9 @@
<h3 class="header" style="background-color: #<%=get_color(user)%>;" ><%= user.full_name %></h3>
<div class="caption">
<% if user.avatar.exists? %>
<%= link_to image_tag(user.avatar , class: "img-circle avatar"), new_user_order_path(user) %>
<%= image_tag(user.avatar , class: "img-circle avatar") %>
<% else %>
<%= link_to image_tag("http://babeholder.pixoil.com/img/70/70", class: "img-circle avatar"), new_user_order_path(user) %>
<%= image_tag("http://babeholder.pixoil.com/img/70/70", class: "img-circle avatar") %>
<% end %>
<p><strong>Name:</strong> <%= user.name %></p>
<p><strong>Last name:</strong> <%= user.last_name %></p>