From 8b073f7054f4c825bdd934696201661fd7a58d3e Mon Sep 17 00:00:00 2001 From: hannes-kl Date: Wed, 28 Nov 2018 20:26:08 +0100 Subject: [PATCH 1/4] move leaflet map to partial --- layouts/eventpost.erb | 63 +-------------------------------------- layouts/partials/_map.erb | 62 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 62 deletions(-) create mode 100644 layouts/partials/_map.erb diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index 8633a46..3ead2ca 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -78,72 +78,11 @@
<%= yield %>
- - -
- -
-
+ <%= render '/partials/_map.erb', location: item[:locationlink] %> - <% if item[:sponsors] %> diff --git a/layouts/partials/_map.erb b/layouts/partials/_map.erb new file mode 100644 index 0000000..9759a71 --- /dev/null +++ b/layouts/partials/_map.erb @@ -0,0 +1,62 @@ + +
+ +
+
+ + From 484f784d88d7bb08977879503da6a652a5a210cb Mon Sep 17 00:00:00 2001 From: hannes-kl Date: Tue, 4 Dec 2018 19:15:29 +0100 Subject: [PATCH 2/4] changed google maps to OSM --- content/about/contact.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/about/contact.erb b/content/about/contact.erb index 98922db..6fab6f2 100644 --- a/content/about/contact.erb +++ b/content/about/contact.erb @@ -122,5 +122,5 @@ contact_links:
- + <%= render '/partials/_map.erb', location: item[:locationlink] %>
From cbd50d9310731b4b50c2aed9d876dd9a2dd9b460 Mon Sep 17 00:00:00 2001 From: hannes-kl Date: Tue, 4 Dec 2018 20:12:03 +0100 Subject: [PATCH 3/4] Moved css and js links to _map.erb --- layouts/eventpost.erb | 2 -- layouts/partials/_map.erb | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index 3ead2ca..353318e 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -13,8 +13,6 @@ - - <% end %> <% if item[:banner] %> diff --git a/layouts/partials/_map.erb b/layouts/partials/_map.erb index 9759a71..e238198 100644 --- a/layouts/partials/_map.erb +++ b/layouts/partials/_map.erb @@ -1,4 +1,12 @@ - +<% content_for :head do %> + + + + +<% end %> + + +