Messages
This commit is contained in:
@@ -45,6 +45,13 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% for message in messages %}
|
||||
<div class="alert {{ message.tags }}" role="alert">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="container">
|
||||
{% block content %} Platzhalter {% endblock %}
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
<h3>{{ notice.notice_title }}</h3>
|
||||
<p>{{ notice.notice_text }}</p>
|
||||
|
||||
{% if user.is_staff %}
|
||||
|
||||
|
||||
{% if user.is_staff or notice.user_id == user.id %}
|
||||
<p>
|
||||
<a href="{% url 'delete' deleteId=notice.id %}"
|
||||
class="btn btn-danger">
|
||||
@@ -25,12 +27,14 @@
|
||||
|
||||
<hr>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<p>
|
||||
<a href="{% url 'new' %}"
|
||||
class="btn btn-primary">
|
||||
Neue Meldung erstellen
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user