diff options
| author | hukl <contact@smyck.org> | 2009-04-18 16:05:31 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-18 16:05:31 +0200 |
| commit | 1c9fe8c12f967a33b1d6751cefb0aa3990518d0b (patch) | |
| tree | 0b6ab6894a5d5303a52e8e202561846ef3490c25 | |
| parent | 0c305d3f702c637266cbd1543ed9b6063bbb4e45 (diff) | |
some more links to wire events together
| -rw-r--r-- | app/views/events/edit.html.erb | 1 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | <% content_for :subnavigation do %> | 1 | <% content_for :subnavigation do %> |
| 2 | <%= link_to 'back', edit_node_path(@event.node) %> | 2 | <%= link_to 'back', edit_node_path(@event.node) %> |
| 3 | <%= link_to 'show', @event %> | ||
| 3 | <% end %> | 4 | <% end %> |
| 4 | 5 | ||
| 5 | 6 | ||
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 @@ | |||
| 3 | <%= link_to 'edit', edit_event_path(@event) %> | 3 | <%= link_to 'edit', edit_event_path(@event) %> |
| 4 | <% end %> | 4 | <% end %> |
| 5 | 5 | ||
| 6 | <h2>Event for node <%= @event.node.unique_name %></h2> | ||
| 7 | |||
| 6 | <p> | 8 | <p> |
| 7 | <b>Start time:</b> | 9 | <b>Start time:</b> |
| 8 | <%=h @event.start_time %> | 10 | <%=h @event.start_time %> |
| @@ -41,9 +43,4 @@ | |||
| 41 | <p> | 43 | <p> |
| 42 | <b>Longitude:</b> | 44 | <b>Longitude:</b> |
| 43 | <%=h @event.longitude %> | 45 | <%=h @event.longitude %> |
| 44 | </p> | ||
| 45 | |||
| 46 | <p> | ||
| 47 | <b>Node:</b> | ||
| 48 | <%=h @event.node_id %> | ||
| 49 | </p> \ No newline at end of file | 46 | </p> \ No newline at end of file |
