From 1c9fe8c12f967a33b1d6751cefb0aa3990518d0b Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Apr 2009 16:05:31 +0200 Subject: some more links to wire events together --- app/views/events/edit.html.erb | 1 + app/views/events/show.html.erb | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb index 524eae4..17b6980 100644 --- a/app/views/events/edit.html.erb +++ b/app/views/events/edit.html.erb @@ -1,5 +1,6 @@ <% content_for :subnavigation do %> <%= link_to 'back', edit_node_path(@event.node) %> + <%= link_to 'show', @event %> <% end %> diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb index 0a77513..ba14a7d 100644 --- a/app/views/events/show.html.erb +++ b/app/views/events/show.html.erb @@ -3,6 +3,8 @@ <%= link_to 'edit', edit_event_path(@event) %> <% end %> +

Event for node <%= @event.node.unique_name %>

+

Start time: <%=h @event.start_time %> @@ -41,9 +43,4 @@

Longitude: <%=h @event.longitude %> -

- -

- Node: - <%=h @event.node_id %>

\ No newline at end of file -- cgit v1.3