%
# Copyright (C) 2012 - 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, "Calendar"
js_env :CALENDAR => {
:CONTEXTS => @contexts_json,
:MANAGE_CONTEXTS => @manage_contexts,
:SELECTED_CONTEXTS => @selected_contexts,
:ACTIVE_EVENT => @active_event_id,
:VIEW_START => @view_start,
:CAL2_ONLY => true,
:SHOW_SCHEDULER => @domain_root_account.show_scheduler?,
:MAX_GROUP_CONVERSATION_SIZE => Conversation.max_group_conversation_size,
:VISIBLE_CONTEXTS_LIMIT => @domain_root_account.settings[:calendar_contexts_limit] || 10,
:CONFERENCES_ENABLED => Account.site_admin.feature_enabled?(:calendar_conferences)
}
js_env({
:STUDENT_PLANNER_ENABLED => @current_user.has_student_enrollment?,
})
js_bundle :calendar2
css_bundle :calendar2, :agenda_view
crumbs.clear
add_body_class "full-width no-page-block hide-content-while-scripts-not-loaded"
%>
<%= t "calendar_feed_instructions", "Copy the link below and paste it into any calendar app that takes iCal feeds (Google Calendar, iCal, Outlook, etc.)" %>