<% # Copyright (C) 2013 - 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 . %>

<% if @assignment.restrict_quantitative_data?(@current_user, check_extra_permissions: true)%> <%= t "This is a graded discussion" %> <% else %> <%= t('graded_discussion_and_points', { :one => 'This is a graded discussion: *1 point possible*', :other => 'This is a graded discussion: *%{count} points possible*' }, :count => round_if_whole(@assignment.points_possible) || 0, :wrapper => "\\1") %> <% end %>

<% if @assignment.has_active_overrides? && @discussion_presenter.show_all_dates? %> <%= t(:show_due_dates, 'Show Due Dates') %> <% else %> > <%= t(:due_date, 'due %{date}', :date => OverrideListPresenter.new.due_at(@assignment)) %> <% end %>
<% if @discussion_presenter.show_all_dates? %>
<% end %>