<% # 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(:page_title, "Statistics for %{account}", :account => @account.name) set_active_tab "statistics" css_bundle :statistics js_bundle :account_statistics %> <% @customLinks = account_custom_links; if @customLinks %> <% provide :right_side do %> <% @customLinks.each do |link| %> <%= link[:text] %> <% end %> <% end %> <% end %>

<%= t(:page_header_title, "Account Statistics") %>

<% if @counts_report %>

<%= t(:general_numbers_title, "General Numbers") %>

<%= t("Category") %> <%= t("Value") %> <%= t("Actions") %>
<%= before_label(:generated_at, "Generated") %> <%= datetime_string(@counts_report['generated_at']) %>  
<%= before_label(:courses, "Courses") %> <%= n(@counts_report['courses']) %> " href="#" class="over_time_link" data-key="courses" data-name="<%= t('labels.courses', "Courses") %>">
<%= before_label(:teachers, "Teachers") %> <%= n(@counts_report['teachers']) %> " href="#" class="over_time_link" data-key="teachers" data-name="<%= t('labels.teachers', "Teachers") %>">
<%= before_label(:students, "Students") %> <%= n(@counts_report['students']) %> " href="#" class="over_time_link" data-key="students" data-name="<%= t('labels.students', "Students") %>">
<%= before_label(:users, "Users") %> <%= n(@counts_report['users']) %> "href="#" class="over_time_link" data-key="users" data-name="<%= t('labels.users', "Users") %>">

<%= t("File Storage") %>

<%= t("Category") %> <%= t("Value") %> <%= t("Actions") %>
  <%= before_label(:uploaded_storage, "Uploaded") %> <%= t(:uploaded_data, { :one => "%{file_size} *from one file*", :other => "%{file_size} *from %{count} files*" }, :file_size => number_to_human_size(@counts_report['files_size'] || 0), :count => @counts_report['files'], :wrapper => '\1') %> " href="#" class="over_time_link" data-key="files_size" data-name="<%= t(:uploaded_file_storage_header, "Uploaded File Storage") %>">
  <%= before_label(:media_storage, "Media") %> <%= t(:media_data, { :one => "%{file_size} *from one file*", :other => "%{file_size} *from %{count} files*" }, :file_size => number_to_human_size(@counts_report['media_files_size'] || 0), :count => @counts_report['media_files'], :wrapper => '\1') %> " href="#" class="over_time_link" data-key="media_files_size" data-name="<%= t(:media_file_storage_header, "Media File Storage") %>">
<% end %> <% if can_do @account, @current_user, :read_course_list %> <% if @account == Account.default %>

<%= t(:recently_created_courses_title, "Recently Created Courses") %>

<% end %>

<%= t(:recently_started_courses_title, "Recently Started Courses") %>

<%= t(:recently_ended_courses_title, "Recently Ended Courses") %>

<% end %> <% if can_do @account, @current_user, :read_roster %>

<%= t(:recently_logged_in_users_title, "Recently Logged-In Users") %>

<% end %>