edit.mustache 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <%
  2. # Copyright (C) 2012 - present Instructure, Inc.
  3. #
  4. # This file is part of Canvas.
  5. #
  6. # Canvas is free software: you can redistribute it and/or modify it under
  7. # the terms of the GNU Affero General Public License as published by the Free
  8. # Software Foundation, version 3 of the License.
  9. #
  10. # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
  11. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License along
  16. # with this program. If not, see <http://www.gnu.org/licenses/>.
  17. %>
  18. <%
  19. content_for :page_title, topic_page_title(@topic)
  20. js_bundle :discussion_topics_edit
  21. css_bundle :tinymce, :grading_standards, :assignments_edit, :discussions_edit
  22. %>
  23. <% content_for(:right_side) do %>
  24. {{> views/shared/wiki_sidebar}}
  25. <% end %>
  26. <% if @context.is_a?(Course) %>
  27. <div id="edit_letter_grades_form" style="display: none;">
  28. <%= render partial: "shared/grading_standard", object: @topic.assignment.try(:grading_standard), locals: {read_only: false} %>
  29. <a href="<%= context_url(@context, :context_grading_standards_url) %>" style="display: none;" class="create_grading_standard_url">&nbsp;</a>
  30. <a href="<%= context_url(@context, :context_grading_standard_url, "{{ id }}") %>" style="display: none;" id="update_grading_standard_url">&nbsp;</a>
  31. </div>
  32. <% end %>