%
# 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 .
%>
<% js_env :CAN_READ => can_do(@context, @current_user, :read) %>
<% js_env :SYLLABUS_BODY => user_content(@syllabus_body || '') %>
<%
show_summary = @context.syllabus_course_summary? && !@context.elementary_enabled?
if @context.elementary_enabled?
title_text = t("Important Info")
submit_btn_text = t("Update Important Info")
help_text = t("You can add important information here that you want to display under the Resources tab.")
else
title_text = t("titles.course_syllabus", "Course Syllabus")
submit_btn_text = t("buttons.update_syllabus", "Update Syllabus")
help_text = mt "instructions.syllabus", <<-DOC
The syllabus page shows a table-oriented view of the course schedule, and the basics of
course grading. You can add any other comments, notes, or thoughts you have about the course
structure, course policies or anything else.
To add some comments, click the "Edit" link at the top.
DOC
end
%>
<% set_active_tab "syllabus" %>
<% course_home ||= false %>
<% header_content = course_home ? @context.nickname_for(@current_user) : title_text %>
<% if @context.show_announcements_on_home_page? && !@context.elementary_subject_course? %>