%
# 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 .
%>
<% provide :page_title, @context.nickname_for(@current_user) %>
<% unless @context.elementary_subject_course? %>
<% unless @course_home_view == 'wiki' || @course_home_view == 'syllabus' %>
<% if @course_home_view == 'wiki' %>
<% elsif @course_home_view == 'modules' %>
<%= render :partial => 'context_modules/content_next', :locals => {:course_home => true} %>
<% elsif @course_home_view == 'assignments' %>
<% elsif @course_home_view == 'syllabus' %>
<%= render :partial => 'assignments/syllabus_content', :locals => {:course_home => true} %>
<% elsif @context.elementary_homeroom_course? %>
<% elsif @course_home_view == 'k5_dashboard' %>
<%= render :partial => 'context_modules/content_next', :locals => {:course_home => true} %>
<% else %>
<%= render :partial => 'shared/dashboard_messages' %>
<%= render :partial => 'shared/recent_activity' %>
<% end %>
<% if @context.public_license? %>