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 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% extends "base.html" %} {% block content %}
  2. {% load taggit_templatetags2_tags %}
  3. <div class="row">
  4. <div class="mx-auto">
  5. <h1>
  6. Dein Newsfeed ...
  7. </h1>
  8. </div>
  9. </div>
  10. <div class="row">
  11. <div class="col-md-8">
  12. <div>
  13. {% for post in posts %}
  14. <div class="mt-5 post">
  15. <div class="date">
  16. {{ post.published_date }}
  17. </div>
  18. <h2>
  19. <a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
  20. </h2>
  21. <p>{{ post.text|linebreaks }}</p>
  22. Tags: {% for tag in post.tags.all %}
  23. <a href="{% url 'post_list_by_tag' tag.slug %}">{{ tag.name }}</a>
  24. {% if not forloop.last %}, {% endif %} {% endfor %} <p>
  25. {{ post.author }}
  26. </p>
  27. </div>
  28. {% endfor %}
  29. </div>
  30. </div>
  31. <div class="mt-5 col-md-4">
  32. <div class="float-right">
  33. <a id="search_submit" href="/posts" class="save btn btn-outline-dark">alle Artikel
  34. </a>
  35. </div>
  36. </div>
  37. </div>
  38. {% endblock %}