2020-07-19 22:16:05 +02:00
|
|
|
{% extends 'global.html'%}
|
2020-07-27 18:49:50 +02:00
|
|
|
{% load static %}
|
2020-08-03 19:14:13 +02:00
|
|
|
{% load thumbnail %}
|
2020-07-19 22:16:05 +02:00
|
|
|
|
2020-07-28 23:45:28 +02:00
|
|
|
{% block title %}{{place.name}}{% endblock %}
|
|
|
|
|
2020-08-10 19:36:42 +02:00
|
|
|
{% block additional_menu_items %}
|
2020-08-17 15:38:52 +02:00
|
|
|
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_edit' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">Edit place</span></a></li>
|
|
|
|
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_delete' pk=place.pk %}" class="LP-Link"><span class="LP-Link__Text">Delete place</span></a></li>
|
2020-08-10 19:36:42 +02:00
|
|
|
{% endblock additional_menu_items %}
|
2020-08-17 15:38:52 +02:00
|
|
|
|
2020-07-19 22:16:05 +02:00
|
|
|
{% block maincontent %}
|
2020-08-10 19:06:45 +02:00
|
|
|
<article class="LP-PlaceDetail">
|
2020-07-19 22:16:05 +02:00
|
|
|
|
2020-08-10 19:06:45 +02:00
|
|
|
<header class="LP-PlaceDetail__Header">
|
2020-08-17 15:38:52 +02:00
|
|
|
<h1 class="LP-Headline">{{ place.name }}</h1>
|
|
|
|
{% if place.images.first.filename.hero.url %}
|
|
|
|
<figure class="LP-PlaceDetail__Image">
|
|
|
|
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
|
|
|
|
</figure>
|
|
|
|
{% endif %}
|
2020-08-10 19:06:45 +02:00
|
|
|
</header>
|
2020-07-19 22:16:05 +02:00
|
|
|
|
2020-08-10 19:06:45 +02:00
|
|
|
<div class="LP-PlaceDetail__Description">
|
|
|
|
<p class="LP-Paragraph">{{ place.description }}</p>
|
2020-07-27 18:49:50 +02:00
|
|
|
</div>
|
2020-08-10 19:06:45 +02:00
|
|
|
|
|
|
|
<section class="LP-Section">
|
|
|
|
<h1 class="LP-Headline">Map-Links</h1>
|
|
|
|
<div class="LP-LinkList">
|
|
|
|
<ul class="LP-LinkList__List">
|
2020-08-17 15:38:52 +02:00
|
|
|
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.google.com/maps?q={{place.latitude}},{{place.longitude}}" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
|
2020-08-10 19:06:45 +02:00
|
|
|
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.tim-online.nrw.de/tim-online2/?center={{place.latitude}},{{place.longitude}}&icon=true&bg=dop" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li>
|
|
|
|
<li class="LP-LinkList__Item"><a target="_blank" href="http://www.openstreetmap.org/?mlat={{place.latitude}}&mlon={{place.longitude}}&zoom=16" class="LP-Link"><span class="LP-Text">OSM</span></a></li>
|
|
|
|
</ul>
|
2020-07-27 18:49:50 +02:00
|
|
|
</div>
|
2020-08-17 15:38:52 +02:00
|
|
|
</section>
|
|
|
|
|
2020-08-10 19:06:45 +02:00
|
|
|
<section class="LP-Section">
|
|
|
|
<h1 class="LP-Headline">Bilder</h1>
|
|
|
|
<div class="LP-ImageGrid">
|
|
|
|
<ul class="LP-ImageGrid__List">
|
2020-08-17 15:38:52 +02:00
|
|
|
{% for place_image in place.images.all %}
|
|
|
|
<li class="LP-ImageGrid__Item">
|
|
|
|
<a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image" src="{{ place_image.filename.thumbnail.url }}"></a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2020-08-10 19:06:45 +02:00
|
|
|
</ul>
|
2020-07-27 18:49:50 +02:00
|
|
|
</div>
|
2020-08-17 15:38:52 +02:00
|
|
|
</section>
|
|
|
|
|
2020-07-27 18:49:50 +02:00
|
|
|
</article>
|
2020-07-19 22:16:05 +02:00
|
|
|
{% endblock maincontent %}
|