Sha256: 8c482a6e6cdbd4146a0cc2e1b0194d6f3b207e21805decd941b294f2aea750cd

Contents?: true

Size: 880 Bytes

Versions: 4

Compression:

Stored size: 880 Bytes

Contents

<!-- Adapted from jquery-flot examples https://github.com/flot/flot/blob/master/examples/visitors/index.html -->
<%= javascript_tag do %>
  var stats = <%= @stats.to_flot.to_json.html_safe %>;
<% 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

4 entries across 4 versions & 1 rubygems

Version Path
sufia-7.0.0.rc1 app/views/stats/file.html.erb
sufia-7.0.0.beta4 app/views/stats/file.html.erb
sufia-7.0.0.beta3 app/views/stats/file.html.erb
sufia-7.0.0.beta2 app/views/stats/file.html.erb