diff --git a/app/views/hyrax/base/_analytics_button.html.erb b/app/views/hyrax/base/_analytics_button.html.erb deleted file mode 100644 index 1769b06122..0000000000 --- a/app/views/hyrax/base/_analytics_button.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<% if Hyrax.config.analytics? %> - <% # turbolinks needs to be turned off or the page will use the cache and the %> - <% # analytics graph will not show unless the page is refreshed. %> - <%= link_to t('.analytics'), @presenter.stats_path, id: 'stats', class: 'btn btn-secondary btn-block center-block', data: { turbolinks: false } %> -<% end %> \ No newline at end of file diff --git a/app/views/hyrax/base/_show_actions.html.erb b/app/views/hyrax/base/_show_actions.html.erb index 170cf448aa..d28dcaab67 100644 --- a/app/views/hyrax/base/_show_actions.html.erb +++ b/app/views/hyrax/base/_show_actions.html.erb @@ -18,7 +18,7 @@ class: presenter.display_unfeature_link? ? 'btn btn-secondary' : 'btn btn-secondary collapse' %> <% end %> <% end %> - <% if Hyrax.config.analytics? %> + <% if Hyrax.config.analytics_reporting? %> <% # turbolinks needs to be turned off or the page will use the cache and the %> <% # analytics graph will not show unless the page is refreshed. %> <%= link_to t('.analytics'), presenter.stats_path, id: 'stats', class: 'btn btn-secondary', data: { turbolinks: false } %> diff --git a/app/views/hyrax/base/show.html.erb b/app/views/hyrax/base/show.html.erb index 5026853296..48d6daca63 100644 --- a/app/views/hyrax/base/show.html.erb +++ b/app/views/hyrax/base/show.html.erb @@ -39,9 +39,6 @@
<%= render('download_pdf', presenter: @presenter, file_set_id: @presenter.file_set_presenters.first.id) if @presenter.show_pdf_download_button? %> <%= render 'citations', presenter: @presenter %> - - <%#= render 'analytics_button', presenter: @presenter %> -
<% end %>
diff --git a/app/views/hyrax/dashboard/sidebar/_activity.html.erb b/app/views/hyrax/dashboard/sidebar/_activity.html.erb index 770f0b4492..1ad4646113 100644 --- a/app/views/hyrax/dashboard/sidebar/_activity.html.erb +++ b/app/views/hyrax/dashboard/sidebar/_activity.html.erb @@ -67,7 +67,7 @@ <% end %> -<% if current_ability.can_create_any_work? && Hyrax.config.analytics? %> +<% if current_ability.can_create_any_work? && Hyrax.config.analytics_reporting? %>