app/views/user_profiles/show.html.erb
<% title "#{@user_profile.user.full_name_with_nick}'s Profile" %>
<div id="profile_left">
<% if !mobile_device?%>
<%= image_tag @user_profile.photo.url(:medium)%>
<% elsif @user_profile.photo? %>
<%= image_tag @user_profile.photo.url(:thumbnail)%>
<% end %>
</div>
<div id="profile_right">
<%= render partial: 'user_profile_entries' %>
</div>
<br />
<%= link_to('Edit', edit_user_profile_path(@user_profile.user.login), class: 'btn btn-default') if current_user.is_admin_of?(current_department) || current_user == @user_profile.user %>
<%= link_to 'Show Shift Reports', show_shifts_user_path(@user_profile.user), class: 'btn btn-default' %>
<%= link_to 'Show All', user_profiles_path, class: 'btn btn-default' %>