blob: 14790526cbae3f4f95e89ba841228bd847a44f4f (
plain)
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
|
<%= render "shared/page_actions",
:title => t(".title"),
:icon_name => "calendar-plus",
:label => t(".create_event"),
:options => [[t(".create_event"), new_event_path]] %>
<%= render "shared/search_form", :placeholder => t(".search_placeholder") %>
<%= will_paginate @events %>
<table class="events_table">
<tr class="header">
<th><%= t("admin.columns.title") %></th>
<th><%= Event.human_attribute_name(:start_time) %></th>
<th><%= Event.human_attribute_name(:end_time) %></th>
<th><%= Event.human_attribute_name(:rrule) %></th>
<th><%= Event.human_attribute_name(:url) %></th>
<th><%= Event.human_attribute_name(:start_node) %></th>
<th></th>
</tr>
<% @events.each do |event| %>
<tr>
<td>
<div class="title_with_flags">
<span class="flag_stack">
<%= flag("clock-off", Event.human_attribute_name(:allday)) if event.allday %>
</span>
<div class="title_body"><%= link_to event.display_title, event %></div>
</div>
</td>
<td><%= admin_datetime(event.start_time) %></td>
<td><%= admin_datetime(event.end_time) %></td>
<td class="rrule_cell"><span class="rrule_text"><%= rrule_with_break_opportunities(event.rrule) %></span></td>
<td class="url_cell"><span class="truncate"><%= external_url_link(event.url) %></span></td>
<td><%= event.node ? link_to(event.node.unique_name, node_path(event.node)) : "" %></td>
<td><%= link_to t(".edit_link"), edit_event_path(event) %></td>
</tr>
<% end %>
</table>
|