Partial takes parameter to change size of map

This commit is contained in:
reverend 2020-12-25 13:29:18 +01:00
parent f73fa616d0
commit e242dc4add
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
<article class="LP-TextSection">
</article>
{% include 'partials/osm_map.html' with config=mapping_config %}
{% include 'partials/osm_map.html' with config=mapping_config modifier='wide' %}
<div class="LP-PlaceGrid">
<h1 class="LP-Headline LP-Headline">{% trans 'Explore the latest places' %}</h1>
<ul class="LP-PlaceGrid__Grid">

View File

@ -1,5 +1,5 @@
{% load static %}
<div tabindex="1" id="map" class="LP-Map map" style="height: 300px"></div>
<div tabindex="1" id="map" class="LP-Map {% if modifier %}LP-Map--{{modifier}}{% endif %} map"></div>
<div id="info" class="map-popup LP-Map__Popup"></div>
<script type="text/javascript">

View File

@ -44,7 +44,7 @@
<section class="LP-Section">
<h1 class="LP-Headline">{% trans 'Map links' %}</h1>
{% include 'partials/osm_map.html' with config=mapping_config%}
{% include 'partials/osm_map.html' with config=mapping_config modifier='wide' %}
<div class="LP-LinkList">
<ul class="LP-LinkList__Container">
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.google.com/maps?q={{place.latitude|safe}},{{place.longitude|safe}}" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>

View File

@ -11,7 +11,7 @@
{% block maincontent %}
{% include 'partials/osm_map.html' with config=mapping_config %}
{% include 'partials/osm_map.html' with config=mapping_config modifier='wide' %}
<div class="LP-PlaceList">
<h1 class="LP-Headline">{% trans 'Our lost places' %}</h1>
<ul class="LP-PlaceList__List">