41 lines
753 B
HTML
Executable File
41 lines
753 B
HTML
Executable File
{% extends 'base.html' %}
|
|
|
|
{% block title %}
|
|
News
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<script>
|
|
var es = new ReconnectingEventSource('/events/');
|
|
es.addEventListener('message', function (e) {console.log(e.data);location.reload();}, false);
|
|
|
|
|
|
</script>
|
|
|
|
<div class="container">
|
|
|
|
{% for notice in notices %}
|
|
<h3>{{ notice.notice_title }}</h3>
|
|
<p>{{ notice.notice_text }}</p>
|
|
<p>
|
|
<a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger">
|
|
Meldung loeschen</a></p>
|
|
{% endfor %}
|
|
|
|
|
|
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|