2018-11-23 12:21:19 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %} {{ title }} {% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-11-23 12:38:10 +01:00
|
|
|
{% for notice in notices %}
|
|
|
|
<div class="jumbotron">
|
|
|
|
<h1 class="display-6">{{ notice.notice_title }}</h1>
|
|
|
|
<p class="lead">{{notice.notice_text}}</p>
|
2018-12-12 21:13:07 +01:00
|
|
|
{% if user.is_staff %}
|
|
|
|
<p><a href="{% url 'delete' notice.id %}" class="btn btn-info" role="button">Nachricht löschen</a></p>
|
|
|
|
{% endif %}
|
2018-11-23 12:38:10 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2018-12-12 21:13:07 +01:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
|
|
|
{% endif %}
|
2018-11-23 12:21:19 +01:00
|
|
|
{% endblock content %}
|