<% # 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 . %> <% outcome_result ||= nil %> <% show_results_link = true if show_results_link.nil? %>
  • " style="<%= hidden unless outcome_result %>"> <% if show_results_link %> " class="title"> <% else %> <% end %> <%= outcome_result.try_rescue(:title) %> <% if show_results_link %> <% else %> <% end %>
    <%= t :scoring, "%{points} out of %{possible_points}", :points => raw("#{outcome_result.try_rescue(:score) || nbsp}"), :possible_points => raw("#{outcome_result.try_rescue(:possible) || nbsp}") %> <% if outcome_result && outcome_result.mastery? %> (<%= t :outcome_mastered, 'mastered' %>) <% end %>
    <%= t :attempt_info, "attempt #%{attempt_number}, %{attempt_date}", :attempt_number => "#{outcome_result.try_rescue(:attempt) || "1"}".html_safe, :attempt_date => "#{datetime_string(outcome_result.try_rescue(:assessed_at))}".html_safe %>
    <% if show_results_link %> <% end %>