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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--
  2. marked parts of the template is external code
  3. import from https://tutorial.djangogirls.org/en/template_extending/
  4. -->
  5. {% extends "base.html" %} {% block content %}
  6. {% load taggit_templatetags2_tags %}
  7. <div class="row">
  8. <div class="mx-auto">
  9. <h1>
  10. Dein Newsfeed ...
  11. </h1>
  12. </div>
  13. </div>
  14. <div class="row">
  15. <div class="col-md-8">
  16. <div>
  17. <!-- imported start -->
  18. {% for post in posts %}
  19. <div class="mt-5 post">
  20. <div class="date">
  21. {{ post.published_date }}
  22. </div>
  23. <h2>
  24. <a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
  25. </h2>
  26. <!-- imported end -->
  27. <p>{{ post.text|linebreaks }}</p>
  28. Tags: {% for tag in post.tags.all %}
  29. <a href="{% url 'post_list_by_tag' tag.slug %}">{{ tag.name }}</a>
  30. {% if not forloop.last %}, {% endif %} {% endfor %} <p>
  31. {{ post.author }}
  32. </p>
  33. </div>
  34. {% endfor %}
  35. </div>
  36. </div>
  37. <div class="mt-5 col-md-4">
  38. <div class="float-right">
  39. <a id="search_submit" href="/posts" class="save btn btn-outline-dark">alle Artikel
  40. </a>
  41. </div>
  42. </div>
  43. </div>
  44. {% endblock %}