26 lines
884 B
HTML
Raw Normal View History

2021-11-24 11:30:38 +01:00
{% extends "base.html" %}
2021-11-24 12:58:02 +01:00
{% block title %}
News
{% endblock %}
{% block body %}
2021-12-01 12:02:01 +01:00
<div>
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}?next=/posts" class="btn btn-warning">Abmelden</a></p>
{% endif %}
{% if not user.is_authenticated %}
<p><a href="{% url 'login' %}?next=/posts" class="btn btn-warning">Anmelden</a></p>
{% endif %}
</div>
2021-11-24 12:58:02 +01:00
<div>
{% for notice in notices %}
<h3> {{ notice.notice_title }}</h3>
<p> {{ notice.notice_text }}</p>
2021-12-01 12:02:01 +01:00
{% if user.is_staff %}
<p><a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger"> Meldung löschen </a></p>
{% endif %}
2021-11-24 12:58:02 +01:00
{% endfor %}
</div>
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% endblock %}