Plankton_Detector/PlanktonDetector/templates/post_details.html

37 lines
1.1 KiB
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>
2024-01-07 00:24:35 +01:00
<p id="comment-label">Comments:</p>
<div id="add_comment">
<form method="POST" id="comment_form">
{%csrf_token%}
{{form}}
<input type="submit" id="submit" value="Add comment">
</form>
</div>
2023-12-19 17:33:46 +01:00
<div class="comments">
{%for comment in object.sorted_comments%}
<div class="single-comment">
<p id="comment-content">{{comment.content}}</p>
<div class="date_author">
<p id="comment-date">{{comment.date_added}}</p>
<p id="comment-author">{{comment.author}}</p>
</div>
</div>
2023-12-19 17:33:46 +01:00
{%endfor%}
</div>
</div>
2023-12-19 17:33:46 +01:00
{%endblock content%}