prakt 8
This commit is contained in:
@@ -10,16 +10,19 @@ Index
|
||||
<div class="container">
|
||||
<h1>Index der Polls-Applikation</h1>
|
||||
{% for post in posts %}
|
||||
<p>{{ post.notice_title }} {{ post.notice_text }}
|
||||
<a class="btn btn-info" role="button">delete message</a></p>
|
||||
|
||||
<p>{{ post.notice_title }} {{ post.notice_text }}</p>
|
||||
<p><a href="{% url 'delete' deleteId=post.id %}" class="btn btn-info">delete message </a></p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
||||
|
||||
<p><a href="{% url 'logout' %}" class="btn btn-warning">Abmelden</a></p>
|
||||
{% if user.is_authenticated %}
|
||||
<p><a href="{% url 'logout' %}?next=/polls"
|
||||
class="btn btn-warning">Abmelden</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user