Plankton_Detector/PlanktonDetector/templates/post_details.html

27 lines
804 B
HTML
Raw Normal View History

2023-12-19 17:33:46 +01:00
{%extends 'base.html'%}
{%load static%}
{%block extracss%}
<link rel="stylesheet" href="{% static 'Community/css/post_details.css' %}">
2023-12-19 17:33:46 +01:00
{%endblock extracss%}
{%block content%}
<div class="page-container">
2023-12-19 17:33:46 +01:00
<div class="post">
<div class="title-content">
<p id="title">{{object.title}}</p>
<p id="content">{{object.content}}</p>
2023-12-19 17:33:46 +01:00
</div>
<div class="author">
<p id="author">{{object.author}}</p>
</div>
</div>
<p id="comment-label">Comments:</p>
2023-12-19 17:33:46 +01:00
<div class="comments">
{%for comments in object.comment_set.all%}
<div class="single-comment">
<p id="comment-content">{{comments.content}}</p>
<p id="comment-author">{{comments.author}}</p>
</div>
2023-12-19 17:33:46 +01:00
{%endfor%}
</div>
</div>
2023-12-19 17:33:46 +01:00
{%endblock content%}