<% # 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 . %> <% add_crumb t(:page_title, 'Profile Pictures') %> <% provide :page_title do %><%= t(:page_title, "Profile Pictures") %><% end %>

<%= t(:title, "Profile Pictures") %>

<%= before_label :show, 'Show' %> <%= t(:submitted_link, { :zero => "Submitted", :one => "Submitted %{count}", :other => "Submitted %{count}" }, :count => @avatar_counts[:submitted] || 0) %> | <%= t(:reported_link, { :zero => "Reported", :one => "Reported %{count}", :other => "Reported %{count}" }, :count => @avatar_counts[:reported] || 0) %> | <%= t(:re_reported_link, { :zero => "Approved, Re-Reported", :one => "Approved, Re-Reported %{count}", :other => "Approved, Re-Reported %{count}"}, :count => @avatar_counts[:re_reported] || 0) %> | <%= t(:all_link, { :zero => "All", :one => "All %{count}", :other => "All %{count}" }, :count => @avatar_counts[:all] || 0) %>
<% if @users.empty? %>

<%= t(:no_avatars_message, "No Profile Pics to Show") %>

<% end %> <% @users.each do |user| %> <% end %>
<%= avatar user, url: nil %> <% if user.avatar_state == :reported %> <%= t('Reported') %> <% end %> <% if user.avatar_state == :re_reported %> <%= t('Re-Reported') %> <% end %> <% if user.avatar_state == :locked %> <%= t('Locked') %> <% end %> <% if user.avatar_state == :approved %> <%= t('Approved') %> <% end %>
<%= will_paginate(@users, :style=>"margin-bottom: 1em;") %> <% js_bundle :manage_avatars %>