Adjusted template

This commit is contained in:
reverend 2020-08-10 19:10:46 +02:00
parent 06b7686264
commit f9cb21dc8e

View File

@ -4,32 +4,40 @@
{% block title %}Lost Places{% endblock %} {% block title %}Lost Places{% endblock %}
{% block maincontent %} {% block maincontent %}
<ul class="LP-Place__List"> <div class="LP-PlaceList">
{% for place in place_list %} <h1 class="LP-Headline">Listing our places</h1>
<li class="LP-Place__Item"> <ul class="LP-PlaceList__List">
<a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link"> {% for place in place_list %}
<article class="LP-Place"> <li class="LP-PlaceList__Item">
<div class="LP-Place__ImageContainer"> <a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link">
<img class="LP-Place__Image" src="{{ place.images.first.filename.thumbnail.url }}" /> <article class="LP-PlaceTeaser LP-PlaceTeaser--extended">
</div> <div class="LP-PlaceTeaser__Image">
<div class="LP-Place__Assets"> <img class="LP-Image" src="{{ place.images.first.filename.thumbnail.url }}" />
<div class="LP-Place__Info"> </div>
<h3 class="LP-Place__Title">{{place.name}}</h3> <div class="LP-PlaceTeaser__Meta">
<p class="LP-Place__Detail">{{place.location}}</p> <div class="LP-PlaceTeaser__Info">
</div> <span class="LP-PlaceTeaser__Title">
<p class="LP-TextSection LP-Place__Description"> <h2 class="LP-Headline LP-Headline--teaser">{{place.name}}</h2>
{{place.description|truncatechars:210|truncatewords:-1}} </span>
</p> <span class="LP-PlaceTeaser__Detail">
<p class="LP-Paragraph">{{place.location}}</p>
<ul class="LP-Icon__List"> </span>
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/favourite.svg' %}" /></li> </div>
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/location.svg' %}" /></li> <div class="LP-PlaceTeaser__Description">
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/flag.svg' %}" /></li> <p class="LP-Paragraph">{{place.description|truncatechars:210|truncatewords:-1}}</p>
</ul> </div>
</div> <div class="LP-PlaceTeaser__Icons">
</article> <ul class="LP-Icon__List">
</a> <li class="LP-Icon__Item"><img class="LP-Icon" src="/icons/favourite.svg" /></li>
</li> <li class="LP-Icon__Item"><img class="LP-Icon" src="/icons/location.svg" /></li>
{% endfor %} <li class="LP-Icon__Item"><img class="LP-Icon" src="/icons/flag.svg" /></li>
</ul> </ul>
</div>
</div>
</article>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock maincontent %} {% endblock maincontent %}