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

44 lines
2.3 KiB
HTML
Raw Permalink Normal View History

{% extends 'global.html'%}
2020-10-01 22:58:06 +02:00
{% load i18n %}
2021-04-06 19:14:36 +02:00
{% load lostplaces%}
# {% block title %}Start{% endblock %}
{% block maincontent %}
2022-09-17 21:22:51 +02:00
{% include 'partials/welcome.html' %}
2020-09-03 00:02:28 +02:00
<article class="LP-TextSection">
<p class="LP-Paragraph">
{% blocktranslate %}You can create, view and share your lost places with other members of this site. You can upload photos, place links to your web galleries and contribute your knowledge by tagging other places or commenting on them. You will find detailed information on where these locations are, how to get there and what to expect from them. This might even include detailed information on the surroundings or the history of a lost place.{% endblocktranslate %}
2020-09-03 00:02:28 +02:00
</p>
{% url 'signup' as signup_url %}
<p class="LP-Paragraph">
{% blocktranslate %}Since vandalism is a growing problem these days, no sensitive information is available to the public. You have to <a class="LP-Link" href="{{signup_url}}"><span class="LP-Link__Text">sign up</span></a> with a voucher code as an invitation to join this community. Only admins can create these codes. Usually you are given a code when we know you in real life in person and when we trust you. A request from an unknown person will most probably be denied.{% endblocktranslate %}
</p>
2020-09-03 00:02:28 +02:00
</article>
<div class="LP-PlaceGrid">
<h1 class="LP-Headline LP-Headline">{% translate 'Explore the latest places' %}</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">
2022-09-17 21:22:51 +02:00
{% include 'partials/image.html' with source_url=place.placeimages.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 %}