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

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. News
  4. {% endblock %}
  5. {% block content %}
  6. <script>
  7. var es = new ReconnectingEventSource('/events/');
  8. es.addEventListener('message', function (e) {console.log(e.data);location.reload();}, false);
  9. </script>
  10. <div class="container">
  11. {% for notice in notices %}
  12. <h3>{{ notice.notice_title }}</h3>
  13. <p>{{ notice.notice_text }}</p>
  14. <p>
  15. <a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger">
  16. Meldung loeschen</a></p>
  17. {% endfor %}
  18. <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
  19. </div>
  20. {% endblock %}