app/views/hyrax/admin/analytics/collection_reports/index.html.erb in hyrax-3.6.0 vs app/views/hyrax/admin/analytics/collection_reports/index.html.erb in hyrax-4.0.0.beta1

- old
+ new

@@ -6,30 +6,30 @@ <div class="row"> <div class="col-sm-12"> <div class="collection-reports"> -<% if Hyrax.config.analytics? && Hyrax.config.analytics_provider != 'ga4' %> - <div class="panel panel-default"> - <div class="panel-heading"><%= t('.repo_summary') %> <b><%= pluralize(Collection.count, "collection") %></b>, <%= t('.repo_summary_2') %> <b><%= @pageviews.all %> <%= t('.views') %></b> <%= t('.and') %> <b><%= @downloads.all %> <%= t('.downloads') %></b>.</div> - <div class="panel-body"> +<% if Hyrax.config.analytics? %> + <div class="card"> + <div class="card-header"><%= t('.repo_summary') %> <b><%= pluralize(Collection.count, "collection") %></b>, <%= t('.repo_summary_2') %> <b><%= @pageviews.all %> <%= t('.views') %></b> <%= t('.and') %> <b><%= @downloads.all %> <%= t('.downloads') %></b>.</div> + <div class="card-body"> <div class="row text-center"> <div class="nav nav-pills btn-group" role="group"> <% if params[:start_date] %> - <a button id='summary-btn' class="btn btn-default nav-link" type="button" href="#summary" data-toggle="pill"> + <a button id='summary-btn' class="btn btn-secondary nav-link" type="button" href="#summary" data-toggle="pill"> <% else %> <a button id='summary-btn' class="btn btn-primary nav-link" type="button" href="#summary" data-toggle="pill"> <% end %> <%= t('.summary') %> </a> - <a button id='monthly-btn' class="btn btn-default nav-link" type="button" href="#monthly" data-toggle="pill"> + <a button id='monthly-btn' class="btn btn-secondary nav-link" type="button" href="#monthly" data-toggle="pill"> <%= t('.monthly') %> </a> <% if params[:start_date] %> <a button id='range-btn' class="btn btn-primary nav-link" type="button" href="#custom-range" data-toggle="pill"> <% else %> - <a button id='range-btn' class="btn btn-default nav-link" type="button" href="#custom-range" data-toggle="pill"> + <a button id='range-btn' class="btn btn-secondary nav-link" type="button" href="#custom-range" data-toggle="pill"> <% end %> <%= t('.custom_range') %> </a> </div> </div> \ No newline at end of file