app/views/genotypes/index.html.erb
<div class="general__container container">
<div class="row">
<div class="col-md-6">
<h3>All Genotypes <%=link_to(image_tag("rss.png"),"/rss")%></h3>
<%=auto_discovery_link_tag(:rss,"/rss", {:title => "RSS for all genotypes"})%>
<div>
<p>Python libraries to parse the provided files:</p>
<ul>
<li><a href="https://github.com/superbobry/snpy">SNPy</a> courtesy of <a href="https://github.com/superbobry/">Sergei Lebedev</a></li>
<li><a href="https://pypi.org/project/snps/">snps</a> courtesy of <a href="https://github.com/apriha">Andrew Riha</a></li>
</ul>
</div>
</div>
<div class="genotype__download-container col-md-6 ">
<%= link_to DataZipperService.public_path, title: "Request download", class: "btn btn-default center-block genotype__download-button" do %>
Download all data
<% end %>
<p class="text-center genotype__text-download">Includes all genotyping files, a CSV with all phenotypes of those users,</br> and all picture phenotypes. A preprocessed dump of 5,000 datasets </br>from February 2020 exists on <a href="https://supfam.mrc-lmb.cam.ac.uk/GenomePrep/downloads.html">GenomePrep</a></p>
</div>
</div>
<div class="table-responsive genotype__table">
<table class="table table-hover" id="all_genotypes">
<thead>
<tr>
<th>User</th>
<th><%= sortable "id", "ID"%></th>
<th><%= sortable "created_at", "Created"%></th>
<th><%= sortable "filetype", "Type"%></th>
<th></th>
</tr>
</thead>
<% @genotypes_paginate.each do |g| %>
<tr>
<td class="table-cell vertical-centered">
<%= link_to(image_tag(g.user.avatar.url(:head), :class => "img-circle", :width => "50px") + " #{g.user.name}", g.user) %>
</td>
<td class="table-cell vertical-centered"><%= g.id %></td>
<td class="table-cell vertical-centered"><%= g.created_at%></td>
<td class="table-cell vertical-centered"><%= g.filetype %></td>
<td class="table-cell vertical-centered"><%= link_to "Download", '../data/' + g.fs_filename, class: "btn btn-default" %></td>
</tr>
<% end %>
</table>
</div>
<div class="text-center">
<%= page_navigation_links @genotypes_paginate %>
</div>
</div>