From 6d724bea7388bbb095c7369430303b183e5fe104 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 1 Mar 2016 00:59:17 +0100 Subject: [PATCH] The map title displays the eventual filtering tag in its title --- app/views/maps/index.html.haml | 6 +++++- app/views/tags/show.html.haml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/maps/index.html.haml b/app/views/maps/index.html.haml index bff3f15e..c5d6d7e4 100644 --- a/app/views/maps/index.html.haml +++ b/app/views/maps/index.html.haml @@ -1,6 +1,10 @@ %h2 %em.fa.fa-map-marker - =title t '.title' + = title t '.title' + - if params[:tag] + « + %em= params[:tag] + » #map.events(data-url="#{maps_path format: :json}") diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.html.haml index 957b75d5..a72b8bae 100644 --- a/app/views/tags/show.html.haml +++ b/app/views/tags/show.html.haml @@ -1,5 +1,5 @@ %h2 - =t '.title' + = t '.title' « %em= params[:id] »