diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 14:24:03 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 14:24:03 +0200 |
| commit | de9a3a5591d4b17c0e0f17abc0ee8ffe85de50e6 (patch) | |
| tree | a66f5f798399a72a1a351c72ff1f4c864d2d5514 /app/views/events/index.html.erb | |
| parent | baace1fa5df46694ddd515dc3bbca59b22df8692 (diff) | |
Extract admin strings to i18n: assets and events clusters
Diffstat (limited to 'app/views/events/index.html.erb')
| -rw-r--r-- | app/views/events/index.html.erb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index dde897ee..138a02ec 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb | |||
| @@ -1,23 +1,23 @@ | |||
| 1 | <h1>Events</h1> | 1 | <h1><%= t(".title") %></h1> |
| 2 | 2 | ||
| 3 | <div class="button_row"> | 3 | <div class="button_row"> |
| 4 | <%= link_to new_event_path, class: 'action_button' do %> | 4 | <%= link_to new_event_path, class: 'action_button' do %> |
| 5 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create event | 5 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_event") %> |
| 6 | <% end %> | 6 | <% end %> |
| 7 | <%= link_to 'View events without a page →', without_node_events_path %> | 7 | <%= link_to t(".without_page_link"), without_node_events_path %> |
| 8 | </div> | 8 | </div> |
| 9 | 9 | ||
| 10 | <%= will_paginate @events %> | 10 | <%= will_paginate @events %> |
| 11 | 11 | ||
| 12 | <table class="events_table"> | 12 | <table class="events_table"> |
| 13 | <tr class="header"> | 13 | <tr class="header"> |
| 14 | <th>Title</th> | 14 | <th><%= t("admin.columns.title") %></th> |
| 15 | <th>Start time</th> | 15 | <th><%= Event.human_attribute_name(:start_time) %></th> |
| 16 | <th>End time</th> | 16 | <th><%= Event.human_attribute_name(:end_time) %></th> |
| 17 | <th>Rrule</th> | 17 | <th><%= Event.human_attribute_name(:rrule) %></th> |
| 18 | <th>Allday</th> | 18 | <th><%= Event.human_attribute_name(:allday) %></th> |
| 19 | <th>Url</th> | 19 | <th><%= Event.human_attribute_name(:url) %></th> |
| 20 | <th>Node</th> | 20 | <th><%= Event.human_attribute_name(:start_node) %></th> |
| 21 | <th></th> | 21 | <th></th> |
| 22 | </tr> | 22 | </tr> |
| 23 | 23 | ||
| @@ -27,14 +27,14 @@ | |||
| 27 | <td><%=h event.start_time %></td> | 27 | <td><%=h event.start_time %></td> |
| 28 | <td><%=h event.end_time %></td> | 28 | <td><%=h event.end_time %></td> |
| 29 | <td class="rrule_cell"><span class="rrule_text"><%= rrule_with_break_opportunities(event.rrule) %></span></td> | 29 | <td class="rrule_cell"><span class="rrule_text"><%= rrule_with_break_opportunities(event.rrule) %></span></td> |
| 30 | <td><%=h event.allday %></td> | 30 | <td><%=h event.allday %> → <%= event.allday ? t("admin.common.yes") : t("admin.common.no") %></td> |
| 31 | <td class="url_cell"> | 31 | <td class="url_cell"> |
| 32 | <% if event.url.present? %> | 32 | <% if event.url.present? %> |
| 33 | <span class="truncate"><%= link_to event.url, event.url %></span> | 33 | <span class="truncate"><%= link_to event.url, event.url %></span> |
| 34 | <% end %> | 34 | <% end %> |
| 35 | </td> | 35 | </td> |
| 36 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> | 36 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> |
| 37 | <td><%= link_to 'edit', edit_event_path(event) %></td> | 37 | <td><%= link_to t(".edit_link"), edit_event_path(event) %></td> |
| 38 | </tr> | 38 | </tr> |
| 39 | <% end %> | 39 | <% end %> |
| 40 | </table> | 40 | </table> |
