<% # 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 do %><%= t('Dashboard') %><% end %> <% if show_planner? # fire off these `fetch` requests now so they are ready sooner six_months_ago = Time.now.utc.at_beginning_of_day.months_ago(6).iso8601(3) beginning_of_day = Time.zone.now.at_beginning_of_day.utc.iso8601(3) %> <%= prefetch_xhr("/api/v1/planner/items?start_date=#{six_months_ago}&filter=new_activity&order=asc") %> <%= prefetch_xhr("/api/v1/planner/items?end_date=#{beginning_of_day}&order=desc&per_page=1") %> <%= prefetch_xhr("/api/v1/planner/items?start_date=#{beginning_of_day}") %> <%= prefetch_xhr('/api/v1/users/self/missing_submissions?include[]=planner_overrides&filter[]=submittable') %> <% end %> <% provide :right_side do %> <% unless show_planner? %>
<% end %> <% end %>
<%= render :partial => 'shared/dashboard_invitation', :collection => @pending_invitations %> <%= render :partial => 'shared/dashboard_messages' %>

<%= t "Dashboard" %>

<% if planner_enabled? %>
<% end %>
<%= render :partial => 'shared/dashboard_card' %>