<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% provide :page_title, t('titles.access_report', 'Access Report') %> <% css_bundle :roster_user_usage %> <% provide :right_side do %> <%= t('links.back_to_user', %{Back to User Page}) %> <% end %>

<%= t 'headings.user_access_report', '%{user} Access Report', :user => @user.name %>

<% if @last_activity_at.present? %>

<%= t "This user's last activity in the course was %{datetime}", :datetime => datetime_string(@last_activity_at) %>

<% end %>

<%= t 'Items last accessed before %{date} may not be shown.', :date => date_string(@aua_expiration_date) %>

<% @accesses.each do |access| %> <% end %>
<%= t('table_headings.content', %{Content}) %> <%= t('table_headings.num_times_viewed', %{Times Viewed}) %> <%= t('table_headings.num_times_participated', %{Times Participated}) %> <%= t('table_headings.last_viewed_time', %{Last Viewed}) %>
<%= access.readable_name %> <%= round_if_whole(access.corrected_view_score) %> <%= access.participate_score %> <%= datetime_string(access.last_access) %>
<%= will_paginate(@accesses) %> <% js_bundle 'context_roster_usage' %>