app/views/spotlight/dashboards/_analytics.html.erb in blacklight-spotlight-2.13.0 vs app/views/spotlight/dashboards/_analytics.html.erb in blacklight-spotlight-3.0.0.alpha.1
- old
+ new
@@ -1,15 +1,15 @@
<%= cache current_exhibit, expires_in: 1.hour do %>
<h3><%= t :'.monthly_header' %></h3>
<table class="table analytics">
<tr>
- <% Spotlight::Engine.config.analytics_provider.metrics.elements.each do |e| %>
- <td class="value col-md-3 <%= e %>"><%= current_exhibit.analytics(1.month, exhibit_root_path(current_exhibit)).send(e) %></td>
+ <% 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>
- <% Spotlight::Engine.config.analytics_provider.metrics.elements.each do |e| %>
+ <% current_exhibit.analytics_provider.metrics.elements.each do |e| %>
<th><%= t(:".#{e}") %></th>
<% end %>
</tr>
</tfoot>
</table>