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

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  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 or notice.user_id == user.id %}
  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. {% if user.is_authenticated %}
  22. <p>
  23. <a href="{% url 'new' %}"
  24. class="btn btn-primary">
  25. Neue Meldung erstellen
  26. </a>
  27. </p>
  28. {% endif %}
  29. {% endblock %}