app/views/hyrax/admin/stats/_top_data.html.erb
<%# [hyc-override] Overriding to make depositor a facet search and not link to user profile %>
<h2>Top File Formats and Users</h2>
<h3>Statistics in this section shows the top <%= @presenter.limit %> items for each category</h3>
<% if @presenter.limit == 5 %>
<p><%= link_to "View top 20", hyrax.admin_stats_path(limit: '20') %> </p>
<% else %>
<p><%= link_to "View top 5", hyrax.admin_stats_path %> </p>
<% end %>
<h3>Top File Formats (top <%= @presenter.top_formats.count %>)</h3>
<ul>
<% @presenter.top_formats.each do |fmt| %>
<li><%= fmt.label %> <span class="count">(<%= fmt.value %>)</span></li>
<% end %>
</ul>
<br />
<h3>Most Active Users (top <%= @presenter.active_users.count %>)</h3>
<ul>
<% @presenter.active_users.each do |user| %>
<li>
<%# [hyc-override] Overriding to make depositor a facet search and not link to user profile %>
<%= link_to user.label, main_app.search_catalog_path(f: { depositor_ssim: [user.label]}) %> <span class="count">(<%= user.value %>)</span>
</li>
<% end %>
</ul>