From 24e2543a1da9f871cc2a47f8939e1b9c53650ba3 Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 17 Dec 2016 18:47:05 +0100 Subject: [PATCH] Tag links point to the proper page --- app/views/events/show.html.haml | 2 +- app/views/orgas/show.html.haml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index f81fe3ad..42ba0721 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -113,7 +113,7 @@ %em.fa.fa-tags %span.label= Event.human_attribute_name :tags - @event.tags.each do |tag| - = link_to tag, tag_path(tag), rel: :tag + = link_to tag, tag_path(tag.name), rel: :tag - if @event.repeat > 0 %h3 diff --git a/app/views/orgas/show.html.haml b/app/views/orgas/show.html.haml index d5f2f992..bfcab4ce 100644 --- a/app/views/orgas/show.html.haml +++ b/app/views/orgas/show.html.haml @@ -110,7 +110,9 @@ %dt %em.fa.fa-tags = Event.human_attribute_name :tags - %dd= @orga.tag_list + %dd + - @orga.tags.each do |tag| + = link_to tag, tag_path(tag.name), rel: :tag %dt %em.fa.fa-heartbeat = Orga.human_attribute_name :active