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/show.html.erb | |
| parent | 42714c697273a7117c6b355fab26c8c35e336ad1 (diff) | |
| parent | cdf5d9941ca866d437612d2f863eac6eb0b3db12 (diff) | |
Merge branch 'erdgeist-revive-events'
Diffstat (limited to 'app/views/events/show.html.erb')
| -rw-r--r-- | app/views/events/show.html.erb | 83 |
1 files changed, 46 insertions, 37 deletions
diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb index ba14a7d3..ac084c92 100644 --- a/app/views/events/show.html.erb +++ b/app/views/events/show.html.erb | |||
| @@ -1,46 +1,55 @@ | |||
| 1 | <% content_for :subnavigation do %> | 1 | <div id="page_editor" class="show_node"> |
| 2 | <%= link_to 'back', edit_node_path(@event.node) %> | 2 | <h1><%= @event.node ? "Event for node #{@event.node.unique_name}" : "Event" %></h1> |
| 3 | <%= link_to 'edit', edit_event_path(@event) %> | ||
| 4 | <% end %> | ||
| 5 | 3 | ||
| 6 | <h2>Event for node <%= @event.node.unique_name %></h2> | 4 | <div id="content"> |
| 5 | <div class="node_description">Actions</div> | ||
| 6 | <div class="node_content node_info_group"> | ||
| 7 | <div class="node_info_group_items"> | ||
| 8 | <% if @event.node %> | ||
| 9 | <div class="node_info_item"> | ||
| 10 | <%= link_to 'Node', node_path(@event.node) %> | ||
| 11 | </div> | ||
| 12 | <% end %> | ||
| 13 | <div class="node_info_item"> | ||
| 14 | <%= link_to edit_event_path(@event, return_to: request.path), class: 'action_button' do %> | ||
| 15 | <%= icon("edit", library: "tabler", "aria-hidden": true) %> Edit | ||
| 16 | <% end %> | ||
| 17 | </div> | ||
| 18 | <div class="node_info_item"> | ||
| 19 | <%= button_to event_path(@event), method: :delete, form: { data: { confirm: 'Delete this event?' }, class: 'button_to destructive' } do %> | ||
| 20 | <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy | ||
| 21 | <% end %> | ||
| 22 | </div> | ||
| 23 | </div> | ||
| 24 | </div> | ||
| 7 | 25 | ||
| 8 | <p> | 26 | <div class="node_description">Start time</div> |
| 9 | <b>Start time:</b> | 27 | <div class="node_content"><%=h @event.start_time %></div> |
| 10 | <%=h @event.start_time %> | ||
| 11 | </p> | ||
| 12 | 28 | ||
| 13 | <p> | 29 | <div class="node_description">End time</div> |
| 14 | <b>End time:</b> | 30 | <div class="node_content"><%=h @event.end_time %></div> |
| 15 | <%=h @event.end_time %> | ||
| 16 | </p> | ||
| 17 | 31 | ||
| 18 | <p> | 32 | <div class="node_description">Rrule</div> |
| 19 | <b>Rrule:</b> | 33 | <div class="node_content"><%=h @event.rrule %></div> |
| 20 | <%=h @event.rrule %> | ||
| 21 | </p> | ||
| 22 | 34 | ||
| 23 | <p> | 35 | <% if (human = @event.humanize_rrule(I18n.locale)) %> |
| 24 | <b>Custom rrule:</b> | 36 | <div class="node_description">Recurrence</div> |
| 25 | <%=h @event.custom_rrule %> | 37 | <div class="node_content"><em><%= human %></em></div> |
| 26 | </p> | 38 | <% end %> |
| 27 | 39 | ||
| 28 | <p> | 40 | <div class="node_description">Tags</div> |
| 29 | <b>Allday:</b> | 41 | <div class="node_content"><%=h @event.tag_list %></div> |
| 30 | <%=h @event.allday %> | ||
| 31 | </p> | ||
| 32 | 42 | ||
| 33 | <p> | 43 | <div class="node_description">Allday</div> |
| 34 | <b>Url:</b> | 44 | <div class="node_content"><%=h @event.allday %></div> |
| 35 | <%=h @event.url %> | ||
| 36 | </p> | ||
| 37 | 45 | ||
| 38 | <p> | 46 | <div class="node_description">Url</div> |
| 39 | <b>Latitude:</b> | 47 | <div class="node_content"><%=h @event.url %></div> |
| 40 | <%=h @event.latitude %> | ||
| 41 | </p> | ||
| 42 | 48 | ||
| 43 | <p> | 49 | <div class="node_description">Latitude</div> |
| 44 | <b>Longitude:</b> | 50 | <div class="node_content"><%=h @event.latitude %></div> |
| 45 | <%=h @event.longitude %> | 51 | |
| 46 | </p> \ No newline at end of file | 52 | <div class="node_description">Longitude</div> |
| 53 | <div class="node_content"><%=h @event.longitude %></div> | ||
| 54 | </div> | ||
| 55 | </div> | ||
