diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/nodes/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index 2ce3853e..c533a55e 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -42,7 +42,6 @@ | |||
| 42 | <td class="description">Tagged with:</td> | 42 | <td class="description">Tagged with:</td> |
| 43 | <td><%= @page.tag_list %></td> | 43 | <td><%= @page.tag_list %></td> |
| 44 | </tr> | 44 | </tr> |
| 45 | <% if @node.events.any? %> | ||
| 46 | <tr> | 45 | <tr> |
| 47 | <td class="description">Events</td> | 46 | <td class="description">Events</td> |
| 48 | <td> | 47 | <td> |
| @@ -55,9 +54,10 @@ | |||
| 55 | </li> | 54 | </li> |
| 56 | <% end %> | 55 | <% end %> |
| 57 | </ul> | 56 | </ul> |
| 57 | <% mapping = default_event_tag_mapping(@page) %> | ||
| 58 | <%= link_to 'add event', new_event_path(node_id: @node.id, tag_list: mapping&.last, auto_tag_source: mapping&.first, return_to: request.path) %> | ||
| 58 | </td> | 59 | </td> |
| 59 | </tr> | 60 | </tr> |
| 60 | <% end %> | ||
| 61 | <tr> | 61 | <tr> |
| 62 | <td class="description"><strong>Title</strong></td> | 62 | <td class="description"><strong>Title</strong></td> |
| 63 | <td><%= sanitize( @page.title ) %></td> | 63 | <td><%= sanitize( @page.title ) %></td> |
