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

35 lines
1.5 KiB
HTML
Raw Normal View History

2020-07-26 23:25:09 +02:00
{% extends 'global.html'%}
2020-07-26 23:42:31 +02:00
{% load static %}
2020-07-26 23:25:09 +02:00
{% block title %}Lost Places{% endblock %}
2020-07-26 23:25:09 +02:00
{% block maincontent %}
<ul class="LP-Place__List">
{% for place in place_list %}
<li class="LP-Place__Item">
2020-07-26 23:34:03 +02:00
<a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link">
2020-07-26 23:25:09 +02:00
<article class="LP-Place">
2020-07-28 18:35:42 +02:00
<div class="LP-Place__ImageContainer">
<img class="LP-Place__Image" src="{{ place.images.first.filename.url_thumbnail }}" />
</div>
2020-07-26 23:25:09 +02:00
<div class="LP-Place__Assets">
<div class="LP-Place__Info">
<h3 class="LP-Place__Title">{{place.name}}</h3>
<p class="LP-Place__Detail">{{place.location}}</p>
</div>
<p class="LP-TextSection LP-Place__Description">
{{place.description|truncatechars:210|truncatewords:-1}}
2020-07-26 23:25:09 +02:00
</p>
<ul class="LP-Icon__List">
2020-07-26 23:36:10 +02:00
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/favourite.svg' %}" /></li>
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/location.svg' %}" /></li>
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/flag.svg' %}" /></li>
2020-07-26 23:25:09 +02:00
</ul>
</div>
</article>
</a>
</li>
{% endfor %}
</ul>
{% endblock maincontent %}