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.

notice.html 779B

123456789101112131415161718192021222324
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>Seite Infos</h2>
  4. <div class="card w-100">
  5. <div class="card-body jumbotron" style="background: ghostwhite">
  6. {% for notice in allnotice %}
  7. <h5 class="card-title">{{ notice.notice_title }}</h5>
  8. <p class="card-text">{{ notice.notice_text |linebreaks }}</p>
  9. <p><a href="{% url 'delete' deleteId=notice.id%}" class="btn btn-danger">Nachricht Löschen</a></p>
  10. {% endfor %}
  11. <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
  12. </div>
  13. </div>
  14. <script>
  15. var es = new ReconnectingEventSource('/events/');
  16. es.addEventListener('message', function (e) {
  17. console.log(e.data);location.reload();false
  18. })
  19. </script>
  20. {% endblock %}