|
12345678910111213141516171819202122232425262728 |
- {% extends 'base.html' %}
-
- {% block title %}
- Index
- {% endblock %}
-
-
- {% block content %}
- <div class="jumbotron jumbotron-fluid">
- <div class="container">
- <h1>Index der Polls-Applikation</h1>
- {% for post in posts %}
- <p>{{ post.notice_title }} {{ post.notice_text }}</p>
- <p><a href="{% url 'delete' deleteId=post.id %}" class="btn btn-info">delete message </a></p>
- {% endfor %}
- </div>
- </div>
-
- <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
-
- {% if user.is_authenticated %}
- <p><a href="{% url 'logout' %}?next=/polls"
- class="btn btn-warning">Abmelden</a></p>
- {% endif %}
-
- {% endblock %}
-
-
|