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

33 lines
1.1 KiB
HTML
Raw Normal View History

{% extends 'global.html'%}
# {% block title %}Start{% endblock %}
{% block maincontent %}
{% include 'partials/welcome.html' %}
<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 %}