Praktikum8
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
{% for notice in notices %}
|
||||
<h3> {{ notice.notice_title }}</h3>
|
||||
@@ -13,4 +14,13 @@
|
||||
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
||||
|
||||
<p><a href="{% url 'logout' %}" class="btn btn-warning">Abmelden</a></p>
|
||||
{% endblock %}
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var es = new ReconnectingEventSource('/events/');
|
||||
es.addEventListener('message',function(e) {
|
||||
console.log(e.data); location.reload();false
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user