Moved css and js links to _map.erb
This commit is contained in:
parent
484f784d88
commit
cbd50d9310
2 changed files with 9 additions and 3 deletions
|
@ -13,8 +13,6 @@
|
||||||
<meta name="twitter:data2" value="<%= item[:location] %>" />
|
<meta name="twitter:data2" value="<%= item[:location] %>" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" />
|
|
||||||
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if item[:banner] %>
|
<% if item[:banner] %>
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<% content_for :head do %>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" />
|
||||||
|
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<!-- MAPS -->
|
<!-- MAPS -->
|
||||||
<div class="map-wrapper box">
|
<div class="map-wrapper box">
|
||||||
<div id="map-error" class="is-invisible" style="height:100%;width:100%;position:absolute;left:0;top:0;background-color:#00000066;z-index:1000;color:white;font-size:30px;display:flex;justify-content:center;align-items:center;padding:50px;">
|
<div id="map-error" class="is-invisible" style="height:100%;width:100%;position:absolute;left:0;top:0;background-color:#00000066;z-index:1000;color:white;font-size:30px;display:flex;justify-content:center;align-items:center;padding:50px;">
|
||||||
|
|
Loading…
Reference in a new issue