generalize maps
This commit is contained in:
parent
3bd6424aac
commit
ab72313db2
4 changed files with 8 additions and 2 deletions
|
@ -5,6 +5,7 @@ description: Een AWK-les voor AWK gerelateerde dingen
|
|||
created_at: 01-02-2016
|
||||
time: 23-02-2016
|
||||
location: Auditorium A1, Campus Sterre, Gebouw S9
|
||||
locationlink: Zeus WPI,Ghent Belgium
|
||||
description: Dit is een description van het awk event!
|
||||
---
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ description: Zeus' vijfde LAN-Party
|
|||
created_at: 13-09-2016
|
||||
time: 4-11-2016
|
||||
location: Therminal, Hoveniersberg 24 9000 Gent
|
||||
locationlink: Therminal,Ghent Belgium
|
||||
description: Zeus' vijfde LAN-Party
|
||||
---
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@
|
|||
<div class="google-maps column is-8 is-offset-2">
|
||||
<iframe
|
||||
frameborder="0" style="border:0"
|
||||
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyBDTmw7LtDG28o9QjCnNucAJv2zTZpLjJU
|
||||
&q=Zeus+WPI,Ghent+Belgium" allowfullscreen>
|
||||
src="<%= locationlink item[:locationlink] %>" allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require 'uri'
|
||||
module EventsHelper
|
||||
def all_events
|
||||
@items.find_all('/events/*/*') + grouped_events
|
||||
|
@ -17,4 +18,8 @@ module EventsHelper
|
|||
[]
|
||||
end
|
||||
end
|
||||
|
||||
def locationlink(location)
|
||||
"https://www.google.com/maps/embed/v1/place?key=AIzaSyBDTmw7LtDG28o9QjCnNucAJv2zTZpLjJU&q=#{URI.escape(location)}" if location
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue