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 732B

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. {% extends "base.html" %}
  2. {% block title %}News{% endblock %}
  3. {% block content %}
  4. <div class="jumbotron">
  5. <h1 class="display-4">News</h1>
  6. </div>
  7. {% for notice in notices %}
  8. <hr>
  9. <h3>{{ notice.notice_title }}</h3>
  10. <p>{{ notice.notice_text }}</p>
  11. {% if user.is_staff %}
  12. <p>
  13. <a href="{% url 'delete' deleteId=notice.id %}"
  14. class="btn btn-danger">
  15. Meldung löschen
  16. </a>
  17. </p>
  18. {% endif %}
  19. {% endfor %}
  20. <hr>
  21. <p>
  22. <a href="{% url 'new' %}"
  23. class="btn btn-primary">
  24. Neue Meldung erstellen
  25. </a>
  26. </p>
  27. {% endblock %}