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

- old
+ new

@@ -6,34 +6,34 @@ <div class="row"> <div class="col-sm-12"> <div class="work-reports"> - <div class="panel panel-default"> - <% if Hyrax.config.analytics? && Hyrax.config.analytics_provider != 'ga4' %> + <div class="card"> + <% if Hyrax.config.analytics? %> <% 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> + <div class="card-header"><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> + <div class="card-header"><%= t('.access_to') %> <b><%= @works_count %> <%= t('.works') %></b>.</div> <% end %> - <div class="panel-body"> + <div class="card-body"> <% if current_user.ability.admin? %> <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>