Development of an internal social media platform with personalised dashboards for students
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.

tag_list.html 755B

12345678910111213141516171819202122232425262728
  1. {% extends "base.html" %} {% block content %}
  2. {% load taggit_templatetags2_tags %}
  3. <div>
  4. </div>
  5. <div>
  6. <a id="search_submit" href="/posts" class="save btn btn-outline-dark">alle Artikel
  7. </a>
  8. {% for post in posts %}
  9. <div class="post">
  10. <div class="date">
  11. {{ post.published_date }}
  12. </div>
  13. <h1>
  14. <a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
  15. </h1>
  16. <p>{{ post.text|linebreaks }}</p>
  17. Tags: {% for tag in post.tags.all %}
  18. <a href="{% url 'post_list_by_tag' tag.slug %}">{{ tag.name }}</a>
  19. {% if not forloop.last %}, {% endif %} {% endfor %} <p>
  20. {{ post.author }}
  21. </p>
  22. </div>
  23. {% endfor %}
  24. </div>
  25. {% endblock %}