#64 explorer draft view
This commit is contained in:
28
django_lostplaces/lostplaces/templates/explorer/drafts.html
Normal file
28
django_lostplaces/lostplaces/templates/explorer/drafts.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% extends 'global.html'%}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
{% load svg_icon %}
|
||||
|
||||
{% block maincontent %}
|
||||
<section class="LP-Section">
|
||||
<div class="LP-PlaceList">
|
||||
<h1 class="LP-Headline">
|
||||
{% if user.username == explorer.user.username %}
|
||||
{% translate 'Your drafts' %}
|
||||
{% else %}
|
||||
{{explorer.user.username}}{% translate '\'s drafts' %}
|
||||
{% endif %}
|
||||
</h1>
|
||||
<ul class="LP-PlaceList__List">
|
||||
{% for place in place_list %}
|
||||
<li class="LP-PlaceList__Item">
|
||||
<a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link">
|
||||
{% include 'partials/place_teaser.html' with place=place extended=True %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock maincontent %}
|
Reference in New Issue
Block a user