lostplaces-backend/lostplaces/lostplaces_app/templates/placeOverview.html

81 lines
3.1 KiB
HTML
Raw Normal View History

{% extends 'global.html'%}
2020-07-27 18:49:50 +02:00
{% load static %}
2020-08-03 19:14:13 +02:00
{% load thumbnail %}
{% block title %}{{place.name}}{% endblock %}
{% block maincontent %}
2020-07-27 18:49:50 +02:00
<article class="LP-PlaceOverview">
<div class="LP-PlaceOverview__Info">
2020-08-03 19:14:13 +02:00
<div class="LP-PlaceOveriew__Image">
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
</div>
2020-07-27 18:49:50 +02:00
<article class="LP-PlaceOverView__Description">
<div class="LP-TextSection">
2020-08-03 19:14:13 +02:00
<h1 class="LP-Headline LP-Headline">{{place.name}}</h1>
<p class="LP-Paragraph LP-Paragraph">{{place.description}}</p>
2020-07-27 18:49:50 +02:00
</div>
</article>
2020-07-27 18:49:50 +02:00
</div>
2020-08-03 19:14:13 +02:00
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Sicherheitsmaßnahmen</h1>
<div class="LP-Content__Wrapper">
<div class="LP-Content">
<div class="LP-TagList">
<ul class="LP-TagList__List">
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Kamera</p>
</div>
</li>
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Wachhund</p>
</div>
</li>
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Zaun</p>
</div>
</li>
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Security</p>
</div>
</li>
</ul>
</div>
</div>
2020-07-27 18:49:50 +02:00
</div>
</article>
2020-08-03 19:14:13 +02:00
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Links</h1>
<div class="LP-Content__Wrapper">
<div class="LP-Content">
<ul class="LP-LinkList__List">
<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>
<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>
</div>
2020-07-27 18:49:50 +02:00
</div>
2020-08-03 19:14:13 +02:00
</article>
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Bilder</h1>
<div class="LP-Content__Wrapper">
<div class=" LP-Content">
<ul class="LP-PlaceOverView__ImageList">
{% for place_image in place.images.all %}
<li class="LP-PlaceOverView__ImageItem">
<a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image" src="{{ place_image.filename.thumbnail.url }}"></a>
</li>
{% endfor %}
</ul>
</div>
2020-07-27 18:49:50 +02:00
</div>
</article>
2020-07-27 18:49:50 +02:00
</article>
{% endblock maincontent %}