forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_dashboard.html.erb
More file actions
60 lines (53 loc) · 2.28 KB
/
Copy pathuser_dashboard.html.erb
File metadata and controls
60 lines (53 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<%
# 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 <http://www.gnu.org/licenses/>.
%>
<% content_for :page_title do %><%= t('user_dashboard', 'User Dashboard') %><% end %>
<% css_bundle :dashboard %>
<% js_bundle :dashboard %>
<% content_for :auto_discovery do %>
<% if @current_user %>
<%= auto_discovery_link_tag(:atom, feeds_user_format_path(@current_user.feed_code, :atom), {:title => t('user_atom_feed', "User Atom Feed (All Courses)")}) %>
<% end %>
<% end %>
<% content_for :right_side do %>
<div class="placeholder"></div>
<% end %>
<div id="dashboard">
<%= render :partial => 'shared/dashboard_invitation', :collection => @pending_invitations %>
<%= render :partial => 'shared/dashboard_messages' %>
<div class="ic-Dashboard-header">
<div class="grid-row bottom-xs">
<div class="col-xs-9">
<h1 class="ic-Dashboard-header_title"><%= t :dashboard, "Dashboard" %></h1>
</div>
<div class="col-xs-3 end-xs ic-Dashboard-content--align-right">
<% if planner_enabled? %>
<div id="dashboard-planner-header" class="CanvasPlanner__HeaderContainer" style="display: <%= show_planner? ? 'block' : 'none' %>"></div>
<% end %>
<div id="DashboardOptionsMenu_Container"></div>
</div>
</div>
</div>
<% if planner_enabled? %>
<% js_bundle :student_planner %>
<div id="dashboard-planner" class="StudentPlanner__Container" style="display: <%= show_planner? ? 'block' : 'none' %>"></div>
<% end %>
<div id="dashboard-activity" class="ic-Dashboard-Activity" style="display: <%= show_recent_activity? ? 'block' : 'none' %>">
<%= render :partial => 'shared/recent_activity' %>
</div>
<%= render :partial => 'shared/dashboard_card' %>
</div>