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: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 %>
|
||||
|
||||
<% if item[:banner] %>
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
<!-- MAPS -->
|
||||
<% 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 -->
|
||||
<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;">
|
||||
Could not find location. Please create an issue on github.
|
||||
|
|
Loading…
Reference in a new issue