add new project

This commit is contained in:
2019-12-10 15:27:07 +01:00
parent 487a8b5ed2
commit 6ed7b6a96b
3 changed files with 30 additions and 34 deletions
+19 -31
View File
@@ -1,34 +1,22 @@
{% extends 'base.html' %}
{% block title %}
Index
{% endblock %}
{% extends "base.html" %}
{% block title %}Index.html{% endblock %}
{% block content %}
<script>
var es = new ReconnectingEventSource('/events/');
es.addEventListener('message', function (e) {
console.log(e.data);
location.reload();
}, false);
</script>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="https://www.th-nuernberg.de/fakultaeten/efi/">Efi</a>
<a class="navbar-brand" href="https://www.google.de">Google</a>
<a class="navbar-brand" href="/posts">Home</a>
<form method="post">
{% for n in notices %}
<div>
<p>Titel: {{ n.notice_title }}</p>
<p>Text: {{ n.notice_text }}</p>
<p><a href="{% url 'delete' deleteId=n.id %}" class="btn btn-danger" >Löschen</a></p>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="/posts">Page 1</a></li>
<li><a href="">Page 2</a></li>
<li><a href="h">Page 3</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h1>Jumbotron Test</h1>
<p>My Jumbotron test</p>
</div>
<p>This is some text.</p>
<p>This is another text.</p>
</div>
{% endblock %}
{% endfor %}
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
</form>
{% endblock %}