123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {% extends "base.html" %}
-
- {% block title %}News{% endblock %}
-
- {% block content %}
- <div class="jumbotron">
- <h1 class="display-4">News</h1>
- </div>
-
- {% for notice in notices %}
- <hr>
- <h3>{{ notice.notice_title }}</h3>
- <p>{{ notice.notice_text }}</p>
-
-
-
- {% if user.is_staff or notice.user_id == user.id %}
- <p>
- <a href="{% url 'delete' deleteId=notice.id %}"
- class="btn btn-danger">
- Meldung löschen
- </a>
- </p>
- {% endif %}
-
- {% endfor %}
-
- <hr>
-
- {% if user.is_authenticated %}
- <p>
- <a href="{% url 'new' %}"
- class="btn btn-primary">
- Neue Meldung erstellen
- </a>
- </p>
- {% endif %}
-
-
- {% endblock %}
-
|