app/views/hyrax/admin/analytics/work_reports/index.html.erb in hyrax-3.5.0 vs app/views/hyrax/admin/analytics/work_reports/index.html.erb in hyrax-3.6.0
- old
+ new
@@ -7,10 +7,10 @@
<div class="row">
<div class="col-sm-12">
<div class="work-reports">
<div class="panel panel-default">
- <% if Hyrax.config.analytics? %>
+ <% if Hyrax.config.analytics? && Hyrax.config.analytics_provider != 'ga4' %>
<% if current_user.ability.admin? %>
<div class="panel-heading"><b><%= @works_count %> <%= t('.works') %></b> <%= t('.repo_summary') %> <b><%= @pageviews.all if @pageviews %> <%= t('.views') %></b> <%= t('.and') %> <b><%= @downloads.all if @downloads %> <%= t('.downloads') %></b>.</div>
<% else %>
<div class="panel-heading"><%= t('.access_to') %> <b><%= @works_count %> <%= t('.works') %></b>.</div>
<% end %>