Sha256: 6d89e16d34549c49957c732378181dff0b8ced62ab4e27733298eee509295342
Contents?: true
Size: 1.64 KB
Versions: 15
Compression:
Stored size: 1.64 KB
Contents
<div class="card"> <div class="card-header"> <h4><%= t('.top_collections') %> <div class="btn-group float-right"> <%= link_to "#{t('.export')}", admin_analytics_collection_reports_path(start_date: @start_date, end_date: @end_date, format: :csv, disposition: "attachment"), class: "btn btn-secondary" %> </div> </h4> </div> <div class="card-body"> <table class="table table-striped"> <thead> <tr> <th><%= t('.collection_title') %></th> <th><%= t('.works_in_collection_views') %></th> <th><%= t('.file_downloads_in_collection') %></th> <th><%= t('.collection_page_views') %></th> </tr> </thead> <tbody> <% @top_collections.each do |collection| %> <% document = ::SolrDocument.find(collection[0]) rescue document = nil %> <tr> <% if document %> <td><%= link_to document, admin_analytics_collection_report_path(collection[0]) %></td> <% else %> <td><i><%= t('.deleted') %></i></td> <% end %> <td><%= collection[1] %></td> <td> <% match = @top_downloads.detect {|a,b| a == collection[0]} %> <%= match ? match[1] : 0 %> </td> <td> <% match = @top_collection_pages.detect {|a,b| a == collection[0]} %> <%= match ? match[1] : 0 %> </td> </tr> <% end %> </tbody> </table> </div> <div class="card-footer"> <div class="float-right"> <%= paginate @top_collections %> </div> </div> </div>
Version data entries
15 entries across 15 versions & 1 rubygems