1234567891011121314151617181920212223242526272829303132333435363738 |
- {% 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 %}
- <p>
- <a href="{% url 'delete' deleteId=notice.id %}"
- class="btn btn-danger">
- Meldung löschen
- </a>
- </p>
- {% endif %}
-
- {% endfor %}
-
- <hr>
-
- <p>
- <a href="{% url 'new' %}"
- class="btn btn-primary">
- Neue Meldung erstellen
- </a>
- </p>
-
-
- {% endblock %}
-
|