<% provide :page_title, "#{t('.title')}" %> <% provide :page_header do %>

<%= t('.title') %>

<% end %>
<% if Hyrax.config.analytics? %> <% if current_user.ability.admin? %>
<%= @works_count %> <%= t('.works') %> <%= t('.repo_summary') %> <%= @pageviews.all if @pageviews %> <%= t('.views') %> <%= t('.and') %> <%= @downloads.all if @downloads %> <%= t('.downloads') %>.
<% else %>
<%= t('.access_to') %> <%= @works_count %> <%= t('.works') %>.
<% end %>
<% if current_user.ability.admin? %>
<% if params[:start_date] %>
<% else %>
<% end %> <%= render "summary" %>
<%= render "monthly_summary" %>
<% if params[:start_date] %>
<% else %>
<% end %> <%= render "hyrax/admin/analytics/date_range_form", redirect_path: hyrax.admin_analytics_work_reports_path %> <%= render "custom_range" %>
<% end %>

<%= t('.report_generated_on') %> <%= Time.zone.today.strftime("%B %d, %Y") %>

<% else %> <% end %>