forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow.html.erb
More file actions
51 lines (47 loc) · 2.07 KB
/
Copy pathshow.html.erb
File metadata and controls
51 lines (47 loc) · 2.07 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
<% content_for :page_title do %><%= join_title @group.name, @context.full_name %><% end %>
<% css_bundle :dashboard %>
<% js_bundle :dashboard %>
<% @active_tab = "home" %>
<% content_for :auto_discovery do %>
<% if @context_membership %>
<%= auto_discovery_link_tag(:atom, feeds_group_format_url(@context_membership.feed_code, :atom), {:title => t('group_atom_feed', "Group Atom Feed")}) %>
<% elsif @context.available? %>
<%= auto_discovery_link_tag(:atom, feeds_group_format_url(@context.feed_code, :atom), {:title => t('group_atom_feed', "Group Atom Feed")}) %>
<% end %>
<% end %>
<% content_for :right_side do %>
<% if can_do(@context, @current_user, :update) %>
<div>
<a href="#" id="edit_group" title="Edit Group" class="Button button-sidebar-wide">
<i class="icon-edit" role="presentation"></i>
<%= t 'edit_group',"Edit Group" %>
</a>
</div>
<% end %>
<% if can_do(@context.announcements.temp_record, @current_user, :create) %>
<div>
<a href="<%= group_announcements_path(@context) %>#new" title="Add Announcement" id="add-announcement" class="Button button-sidebar-wide">
<i class="icon-plus" role="presentation"></i>
<%= t 'new_announcement', "Announcement" %>
</a>
</div>
<% end %>
<% locals = {:title => t('coming_up', "Coming Up"), :contexts_to_link_to => @context, :upcoming => true, :period => :one_week} %>
<% if @current_user %>
<% cache([@current_user, @context, 'group_upcoming_events' ]) do %>
<%= render :partial => "shared/event_list", :object => @current_user.upcoming_events(:contexts => @context), :locals => locals %>
<% end %>
<% else %>
<%= render :partial => "shared/event_list", :object => [], :locals => locals %>
<% end %>
<% end %>
<div id="group_messages">
<%= render :partial => 'shared/dashboard_messages' %>
<%= render :partial => 'shared/recent_activity' %>
</div>
<% js_bundle :student_group_dialog %>
<% js_env({
:student_mode => true,
:group => @group.as_json[:group],
:group_category => @group.group_category.try(:[], :group_category)
})%>