2020-09-02 00:26:03 +02:00
|
|
|
{% extends 'global.html'%}
|
|
|
|
|
|
|
|
# {% block title %}Start{% endblock %}
|
|
|
|
|
|
|
|
{% block maincontent %}
|
|
|
|
|
2020-09-02 22:46:10 +02:00
|
|
|
{% include 'partials/welcome.html' %}
|
|
|
|
|
2020-09-02 00:26:03 +02:00
|
|
|
<div class="LP-PlaceGrid">
|
|
|
|
<h1 class="LP-Headline LP-Headline">Our latest locations</h1>
|
|
|
|
<ul class="LP-PlaceGrid__Grid">
|
|
|
|
{% for place in place_list %}
|
|
|
|
<li class="LP-PlaceGrid__Item">
|
|
|
|
<a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link">
|
|
|
|
<article class="LP-PlaceTeaser">
|
|
|
|
<div class="LP-PlaceTeaser__Image">
|
|
|
|
<img class="LP-Image" src="{{ place.images.first.filename.thumbnail.url}}" />
|
|
|
|
</div>
|
|
|
|
<div class="LP-PlaceTeaser__Meta">
|
|
|
|
<div class="LP-PlaceTeaser__Info">
|
|
|
|
<span class="LP-PlaceTeaser__Title">
|
|
|
|
<h1 class="LP-Headline LP-Headline--teaser">{{place.name|truncatechars:19}}</h1>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock maincontent %}
|