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

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122232425262728
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. Index
  4. {% endblock %}
  5. {% block content %}
  6. <div class="jumbotron jumbotron-fluid">
  7. <div class="container">
  8. <h1>Index der Polls-Applikation</h1>
  9. {% for post in posts %}
  10. <p>{{ post.notice_title }} {{ post.notice_text }}</p>
  11. <p><a href="{% url 'delete' deleteId=post.id %}" class="btn btn-info">delete message </a></p>
  12. {% endfor %}
  13. </div>
  14. </div>
  15. <p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
  16. {% if user.is_authenticated %}
  17. <p><a href="{% url 'logout' %}?next=/polls"
  18. class="btn btn-warning">Abmelden</a></p>
  19. {% endif %}
  20. {% endblock %}