From a145c61171b3241db4321e35b554556a3929a607 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 18 Feb 2020 20:42:48 +0100 Subject: [PATCH] The link to past events does go to those. Refs #168 --- app/views/orgas/show.html.haml | 2 +- app/views/tags/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/orgas/show.html.haml b/app/views/orgas/show.html.haml index 1d9bf63b..1e577b86 100644 --- a/app/views/orgas/show.html.haml +++ b/app/views/orgas/show.html.haml @@ -86,5 +86,5 @@ %em.fa.fa-backward = t '.past' %dd - = link_to tag_path @orga.name_as_tag do + = link_to tag_path(@orga.name_as_tag, anchor: 'past') do = t '.count', count: @events_past.count diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.html.haml index 9cb26c89..dcf9a737 100644 --- a/app/views/tags/show.html.haml +++ b/app/views/tags/show.html.haml @@ -28,7 +28,7 @@ attributes: %w[href src width height style title name id] - if @events_past.any? - %h2 + %h2#past %em.fa.fa-backward = t '.past' \-