From 160d6abe546c476eb729552471962f3f80a88f5e Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 6 Oct 2019 16:54:37 +0200 Subject: [PATCH] Proper osm logo --- app/assets/images/osm_logo.svg | 1 + app/views/events/show.html.haml | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 app/assets/images/osm_logo.svg diff --git a/app/assets/images/osm_logo.svg b/app/assets/images/osm_logo.svg new file mode 100644 index 00000000..51fbec37 --- /dev/null +++ b/app/assets/images/osm_logo.svg @@ -0,0 +1 @@ +010110010011010110010011010110010011010110010011 \ No newline at end of file diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index a09f012a..4b15ed39 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -23,8 +23,8 @@ %span.address= @event.address %span.city= @event.city %span.region - = t @event.region.code.present? ? @event.region.code : @event.region.name, - scope: :countries, default: @event.region.name + = t @event.region.code.presence || @event.region.name, scope: :countries, + default: @event.region.name - if @event.latitude && @event.longitude .event#map{ data: { url: maps_path(format: :json), @@ -33,11 +33,10 @@ - elsif controller.action_name != 'show' %em.fa.fa-compress %em - = raw t '.noMap' + = t '.noMap' %a{ target: '_blank', href: 'https://osm.org/search?query=' + @event.full_address } - %img(src='https://www.openstreetmap.org/assets/osm_logo.png' - alt='OSM logo' width='22px') + = image_tag 'osm_logo.svg', alt: 'OSM logo', width: '32px' %h3= Event.human_attribute_name :description .description