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

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