blob: e59eedc7ead7bf684c8b336ad834c882dc0fdd98 (
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
|
<h1><%= t(".title") %></h1>
<%= link_to t(".all_events_link"), events_path %>
<%= link_to new_event_path, class: 'action_button' do %>
<%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t("events.index.create_event") %>
<% end %>
<%= 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(:allday) %></th>
<th><%= Event.human_attribute_name(:url) %></th>
<th></th>
</tr>
<% @events.each do |event| %>
<tr>
<td><%= link_to event.display_title, event %></td>
<td><%= admin_datetime(event.start_time) %></td>
<td><%= admin_datetime(event.end_time) %></td>
<td><%= t("admin.common.#{event.allday ? "yes" : "no"}") %></td>
<td><%=h event.url %></td>
<td class="url_cell"><span class="truncate"><%= external_url_link(event.url) %></span></td>
</tr>
<% end %>
</table>
|