diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:33:11 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:33:11 +0200 |
| commit | 8eab68f2c5a3c126e2fec2ecdfa7ace87ce0937b (patch) | |
| tree | f446ebc26a7707c7b64a937aa51a155df146c80a /app/views/events/index.html.erb | |
| parent | 42714c697273a7117c6b355fab26c8c35e336ad1 (diff) | |
| parent | cdf5d9941ca866d437612d2f863eac6eb0b3db12 (diff) | |
Merge branch 'erdgeist-revive-events'
Diffstat (limited to 'app/views/events/index.html.erb')
| -rw-r--r-- | app/views/events/index.html.erb | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 19b21ce8..dde897ee 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb | |||
| @@ -1,36 +1,40 @@ | |||
| 1 | <h1>Listing events</h1> | 1 | <h1>Events</h1> |
| 2 | 2 | ||
| 3 | <table> | 3 | <div class="button_row"> |
| 4 | <tr> | 4 | <%= link_to new_event_path, class: 'action_button' do %> |
| 5 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create event | ||
| 6 | <% end %> | ||
| 7 | <%= link_to 'View events without a page →', without_node_events_path %> | ||
| 8 | </div> | ||
| 9 | |||
| 10 | <%= will_paginate @events %> | ||
| 11 | |||
| 12 | <table class="events_table"> | ||
| 13 | <tr class="header"> | ||
| 14 | <th>Title</th> | ||
| 5 | <th>Start time</th> | 15 | <th>Start time</th> |
| 6 | <th>End time</th> | 16 | <th>End time</th> |
| 7 | <th>Rrule</th> | 17 | <th>Rrule</th> |
| 8 | <th>Custom rrule</th> | ||
| 9 | <th>Allday</th> | 18 | <th>Allday</th> |
| 10 | <th>Url</th> | 19 | <th>Url</th> |
| 11 | <th>Latitude</th> | ||
| 12 | <th>Longitude</th> | ||
| 13 | <th>Node</th> | 20 | <th>Node</th> |
| 21 | <th></th> | ||
| 14 | </tr> | 22 | </tr> |
| 15 | 23 | ||
| 16 | <% @events.each do |event| %> | 24 | <% @events.each do |event| %> |
| 17 | <tr> | 25 | <tr> |
| 26 | <td><%= link_to event.display_title, event %></td> | ||
| 18 | <td><%=h event.start_time %></td> | 27 | <td><%=h event.start_time %></td> |
| 19 | <td><%=h event.end_time %></td> | 28 | <td><%=h event.end_time %></td> |
| 20 | <td><%=h event.rrule %></td> | 29 | <td class="rrule_cell"><span class="rrule_text"><%= rrule_with_break_opportunities(event.rrule) %></span></td> |
| 21 | <td><%=h event.custom_rrule %></td> | ||
| 22 | <td><%=h event.allday %></td> | 30 | <td><%=h event.allday %></td> |
| 23 | <td><%=h event.url %></td> | 31 | <td class="url_cell"> |
| 24 | <td><%=h event.latitude %></td> | 32 | <% if event.url.present? %> |
| 25 | <td><%=h event.longitude %></td> | 33 | <span class="truncate"><%= link_to event.url, event.url %></span> |
| 26 | <td><%=h event.node_id %></td> | 34 | <% end %> |
| 27 | <td><%= link_to 'Show', event %></td> | 35 | </td> |
| 28 | <td><%= link_to 'Edit', edit_event_path(event) %></td> | 36 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> |
| 29 | <td><%= button_to 'Destroy', event, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td> | 37 | <td><%= link_to 'edit', edit_event_path(event) %></td> |
| 30 | </tr> | 38 | </tr> |
| 31 | <% end %> | 39 | <% end %> |
| 32 | </table> | 40 | </table> |
| 33 | |||
| 34 | <br /> | ||
| 35 | |||
| 36 | <%= link_to 'New event', new_event_path %> | ||
