Solution of 07
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user