This commit is contained in:
Oliver
2023-12-07 15:17:12 +01:00
parent 2d7af0e65f
commit 845cc0d1ab
6 changed files with 50 additions and 3 deletions
+7
View File
@@ -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 %}
+5 -1
View File
@@ -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 %}