blob: c610b560a44917c1b594d7c2a4992bc6b66574ce (
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><%=h event.start_time %></td>
<td><%=h event.end_time %></td>
<td><%=h event.allday %> → <%= event.allday ? t("admin.common.yes") : t("admin.common.no") %></td>
<td><%=h event.url %></td>
<td><%= link_to t("events.index.edit_link"), edit_event_path(event) %></td>
</tr>
<% end %>
</table>
|