Sha256: 116a830bfc214684a3c671a9e8c3428898c71a3e1a2ac80415d62bfb3ba4db9f
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
<%= cache current_exhibit, expires_in: 1.hour do %> <h3><%= t :'.monthly_header' %></h3> <table class="table analytics"> <tr> <% current_exhibit.analytics_provider.metrics.elements.each do |e| %> <td class="value <%= e %>"><%= current_exhibit.analytics(1.month, exhibit_root_path(current_exhibit)).send(e) %></td> <% end %> </tr> <tfoot> <tr> <% current_exhibit.analytics_provider.metrics.elements.each do |e| %> <th><%= t(:".#{e}") %></th> <% end %> </tr> </tfoot> </table> <% page_analytics = current_exhibit.page_analytics(1.month, exhibit_root_path(current_exhibit)) %> <% unless page_analytics.empty? %> <h4><%= t :'.pages.header' %></h4> <table class="table table-striped popular-pages"> <thead> <tr> <th><%= t(:".pagetitle") %></th> <th class="text-right"><%= t(:".pageviews") %></th> </tr> </thead> <% page_analytics.each do |p| %> <tr> <td><%= link_to p.pageTitle, p.pagePath %></td> <td class="text-right"><%= p.pageviews %></td> </tr> <% end %> </table> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.0.0.alpha.2 | app/views/spotlight/dashboards/_analytics.html.erb |
blacklight-spotlight-3.0.0.alpha.1 | app/views/spotlight/dashboards/_analytics.html.erb |