123456789101112131415161718 |
- {% extends "base.html" %}
-
- {% block title %} {{ title }} {% endblock title %}
-
- {% block content %}
- {% for notice in notices %}
- <div class="jumbotron">
- <h1 class="display-6">{{ notice.notice_title }}</h1>
- <p class="lead">{{notice.notice_text}}</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 %}
- {% if user.is_authenticated %}
- <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
- {% endif %}
- {% endblock content %}
|