From 5df7cc5ec6048b4e3cda69046b969a06094bbab5 Mon Sep 17 00:00:00 2001 From: reverend Date: Fri, 25 Dec 2020 13:29:34 +0100 Subject: [PATCH] #46 Large Map --- django_lostplaces/lostplaces/static/main.css | 5 +++++ .../lostplaces/templates/global.html | 4 ++-- .../lostplaces/templates/osm_map_full.html | 16 ++++++++++++++++ django_lostplaces/lostplaces/urls.py | 6 ++++-- django_lostplaces/lostplaces/views/views.py | 11 +++++++++++ 5 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 django_lostplaces/lostplaces/templates/osm_map_full.html diff --git a/django_lostplaces/lostplaces/static/main.css b/django_lostplaces/lostplaces/static/main.css index b8c6642..75eb8b8 100644 --- a/django_lostplaces/lostplaces/static/main.css +++ b/django_lostplaces/lostplaces/static/main.css @@ -1701,6 +1701,11 @@ body { .LP-Map { margin-bottom: 25px; } + .LP-Map--wide { + height: 300px; } + .LP-Map--full { + height: 100%; + width: 100%; } .LP-Map .ol-attribution { font-family: "Montserrat", Helvetica, sans-serif; color: #565656; } diff --git a/django_lostplaces/lostplaces/templates/global.html b/django_lostplaces/lostplaces/templates/global.html index 25cec9d..e474d1b 100644 --- a/django_lostplaces/lostplaces/templates/global.html +++ b/django_lostplaces/lostplaces/templates/global.html @@ -30,7 +30,7 @@ {% if user.is_authenticated %} Hi {{ user.username }}! {% trans 'Logout' %} | - {% trans 'Profile' %} + {% trans 'Profile' %} {% if user.is_superuser %} | {% trans 'Admin' %} {% endif %} @@ -50,7 +50,7 @@