From 916233507697fbf0a55fadf561433598db38deec Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 29 Jun 2019 22:06:54 +0200 Subject: [PATCH] =?UTF-8?q?Libre=20en=20f=C3=AAte=20and=20linux=20presenta?= =?UTF-8?q?tion=20day=20logos=20better=20sized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/regions/_filter.haml | 4 ++-- app/views/tags/_context.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/regions/_filter.haml b/app/views/regions/_filter.haml index a2b6f06a..ee72d1fe 100644 --- a/app/views/regions/_filter.haml +++ b/app/views/regions/_filter.haml @@ -1,7 +1,7 @@ -# Choose a region to filter events with %ul.regions - %li#near-me{ class: ('selected' if params[:near].present?) } - - if params[:near].present? && params[:near][:location].present? + %li#near-me{ class: ('selected' if (params[:near] && params[:near][:location]).present?) } + - if (params[:near] && params[:near][:location]).present? %a(href="?near=") %em.fa.fa-map-pin = params[:near][:location] diff --git a/app/views/tags/_context.html.haml b/app/views/tags/_context.html.haml index f6f07bd2..9078efe4 100644 --- a/app/views/tags/_context.html.haml +++ b/app/views/tags/_context.html.haml @@ -4,7 +4,7 @@ - if controller_name != 'tags' && %w[show edit].include?(action_name) = t '.link' %a(href='https://www.libre-en-fete.net') - = image_tag 'lef.png', width: '180', height: '60', alt: 'Libre en FĂȘte', + = image_tag 'lef.png', width: '486', height: '60', alt: 'Libre en FĂȘte', style: 'vertical-align: middle' - elsif tags.include? 'linux-presentation-day'