Solution of 07

This commit is contained in:
2018-12-12 21:13:07 +01:00
parent b4ac907a6a
commit 5d99369516
5 changed files with 38 additions and 6 deletions
+6 -2
View File
@@ -7,8 +7,12 @@
<div class="jumbotron">
<h1 class="display-6">{{ notice.notice_title }}</h1>
<p class="lead">{{notice.notice_text}}</p>
<p><a href="{% url 'delete' notice.id %}" class="btn btn-info" role="button">Nachricht löschen</a></p>
{% if user.is_staff %}
<p><a href="{% url 'delete' notice.id %}" class="btn btn-info" role="button">Nachricht löschen</a></p>
{% endif %}
</div>
{% endfor %}
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% if user.is_authenticated %}
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% endif %}
{% endblock content %}