From ae04d485239d3b00118d99bb4b7f824e0dbb0705 Mon Sep 17 00:00:00 2001 From: Joerg Reichert Date: Sun, 15 Apr 2018 15:51:43 +0200 Subject: [PATCH] #41: use link_to_unless_current --- app/views/layouts/application.html.slim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 8d25e7f..a7a02e0 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -13,9 +13,9 @@ html .clearfix h1[id="title" class="left"] = link_to 'Stadtratmonitor Leipzig', search_path div(class="right") - div(class="left") = link_to 'Suche', search_path - div(class="left header_indent") = link_to 'Glossar', glossary_url - div(class="right header_indent") = link_to 'Impressum', impressum_url + div(class="left") = link_to_unless_current 'Suche', search_path + div(class="left header_indent") = link_to_unless_current 'Glossar', glossary_url + div(class="right header_indent") = link_to_unless_current 'Impressum', impressum_url div(class="clear") div(class="clear") - flash.each do |name, msg|