Sha256: b7c2b923b3ab40fba796d6cb7c64885f072c918b814bed2397d7550daa4b6613

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

<!-- Adapted from jquery-flot examples https://github.com/flot/flot/blob/master/examples/visitors/index.html -->
<%= javascript_tag do %>
  var hyrax_item_stats = <%= raw json_escape @stats.to_flot.to_json %>;
<% end %>

<%= content_tag :h1, @file_set, class: "lower" %>

<div class="row">
  <div class="col-sm-12">
    <%= content_tag :h2, "File Analytics" %>
    <div class="alert alert-info">
      <i class="glyphicon glyphicon-signal large-icon"></i>
      <%= content_tag :strong, @stats.total_pageviews %> views and <%= content_tag :strong, @stats.total_downloads %> downloads since <%= @stats.created.strftime("%B %-d, %Y") %>
    </div>
    <div class="stats-container">
        <div id="usage-stats" class="stats-placeholder"></div>
    </div>
    <div class="stats-container" style="height:150px;">
        <div id="overview" class="stats-placeholder"></div>
    </div>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/stats/file.html.erb
hyrax-2.0.3 app/views/hyrax/stats/file.html.erb