Plankton_Detector/PlanktonDetector/templates/list_posts.html

21 lines
650 B
HTML
Raw Normal View History

2023-12-13 02:11:29 +01:00
{%extends 'base.html'%}
{%load static%}
{%block extracss%}
<link rel="stylesheet" href="{% static 'Community/css/list_posts.css' %}">
{%endblock extracss%}
{%block content%}
<div class="post_list">
<h2>Posts</h2>
{% for post in object_list %}
<div class="post_details">
<a href="{%url 'post-details' pk=post.id %}">
<h3 class="title">{{ post.title }}</h3>
<div class="date_author">
<p class="date">{{post.date_pub}}</p>
<p class="author">{{post.author.username}}</p>
</div>
</a>
</div>
{% endfor %}
</div>
{%endblock content%}