Browse Source

Proper osm logo

remotes/origin/master
echarp 3 years ago
parent
commit
160d6abe54
  1. 1
      app/assets/images/osm_logo.svg
  2. 9
      app/views/events/show.html.haml

1
app/assets/images/osm_logo.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 88 KiB

9
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

Loading…
Cancel
Save