Sha256: 8c1fc74c8580595690a30e35206e936ee5b67b025567f30e1bf616fc74e547c9
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
Contents
<!-- Adapted from jquery-flot examples https://github.com/flot/flot/blob/master/examples/visitors/index.html --> <script> //<![CDATA[ var hyrax_item_stats = <%= raw json_escape @pageviews.to_flot.to_json %>; //]]> </script> <%= content_tag :h1, @document, class: "lower" %> <div class="row"> <div class="col-sm-12"> <%= content_tag :h2, "#{t('.header')}" %> <div class="alert alert-info"> <span class="glyphicon glyphicon-signal large-icon"></span> <%= t('total_view', count: @pageviews.range(Hyrax.config.analytics_start_date.to_date, Time.zone.today)) %> <%= t('download', count: @downloads.range(Hyrax.config.analytics_start_date.to_date, Time.zone.today)) %> </div> <div class="stats-container"> <h3 class="text-center"><%= t('.pageviews') %></h3> <div id="pageviews"> <%= render 'pageviews' %> </div> </div> <div class="stats-container"> <h3 class="text-center"><%= t('.downloads') %></h3> <div id="downloads"> <%= render 'downloads' %> </div> </div> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems