app/views/users/_user_is_not_user.html.erb
<div class="userpage__profile-informations row">
<div class="col-md-8 col-xs-12">
<%= image_tag @user.avatar.url(:thumb), class: "hidden-xs pull-left userpage__profile-picture"%>
<h3>
<%= @user.name %>'s page
<%if @user.open_humans_profile != nil%>
<%=link_to(image_tag("open_humans_logo.png",size: '32x32'), {:controller => "open_humans_profiles", :action => "index"}, :data => {toggle:"tooltip", placement:"bottom"}, :title => "Linked to an Open Humans Account")%>
<%end%>
</h3>
<% if @user.description != "" and not @user.homepages.empty?%>
<h3>On <%= @first_name %>:</h3>
<%end %>
<% if @user.description != nil %>
<p><%= @user.description %> </p>
<% end %>
<%= link_to("Send "+ @first_name + " a message", {:controller => "messages", :action => "new", :user_to_send => @user.id}, class: "btn btn-primary userpage__new-messages") %>
</div>
<%if current_user%>
<div class="col-md-4 col-xs-12 clearfix">
<% if @user.homepages != [] %>
<div class="pull-left userpage__homepages">
<% @user.homepages.each do |uh| %>
<% if uh.description != "" and uh.url != "" %>
<%= link_to uh.description, uh.url, :target => "_blank", class: "btn btn-default" %><br/>
<% end %>
<% end %>
</div>
<% end %>
<div class="pull-right userpage__achievements">
<h3>Achievements</h3>
<% @user.achievements.each do |a|%>
<a href="/achievements/<%= a.id %>" rel="tooltip" title="Achievement: <%=a.award%>"><%=image_tag("achievements/"+a.short_name+"_32px.png",:height=>"25px",:alt => a.award)%></a>
<%end%>
</div>
</div>
<%end%>
</div>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#genotypes" aria-controls="gentypes" role="tab" data-toggle="tab">Genotypes</a></li>
<li role="presentation"><a href="#variations" aria-controls="variations" role="tab" data-toggle="tab">Variations</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active clearfix well tabs__one-tab settings__general" id="genotypes">
<h3 class="tabs__one-tab-title"><%=@first_name%>'s genotype</h3>
<% if @user.genotypes != [] %>
<h4><%= @first_name %> has uploaded genotyping rawdata.</h4>
<ul class="list-unstyled">
<%@user.genotypes.each do |g|%>
<li>
<%= link_to "Download this set (#{g.filetype})", g.genotype.url, class: "btn btn-default" %>
</li>
<%end%>
</ul>
<% else %>
<p><%= @first_name %> has not uploaded any sequences.</p>
<% end %>
</div>
<div role="tabpanel" class="tab-pane well tabs__one-tab" id="variations">
<% if @user_phenotypes != []%>
<%= render "variations" %>
<% else %>
<p>This user has not entered any phenotypes yet.</p>
<% end %>
</div>
</div>