Solutions for MEIM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 659B

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
123456789101112131415161718
  1. {% extends "base.html" %}
  2. {% block title %} {{ title }} {% endblock title %}
  3. {% block content %}
  4. {% for notice in notices %}
  5. <div class="jumbotron">
  6. <h1 class="display-6">{{ notice.notice_title }}</h1>
  7. <p class="lead">{{notice.notice_text}}</p>
  8. {% if user.is_staff %}
  9. <p><a href="{% url 'delete' notice.id %}" class="btn btn-info" role="button">Nachricht löschen</a></p>
  10. {% endif %}
  11. </div>
  12. {% endfor %}
  13. {% if user.is_authenticated %}
  14. <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
  15. {% endif %}
  16. {% endblock content %}