2023-12-19 17:33:46 +01:00
|
|
|
{%extends 'base.html'%}
|
|
|
|
{%load static%}
|
|
|
|
{%block extracss%}
|
2024-01-04 21:33:13 +01:00
|
|
|
<link rel="stylesheet" href="{% static 'Community/css/post_details.css' %}">
|
2023-12-19 17:33:46 +01:00
|
|
|
{%endblock extracss%}
|
|
|
|
{%block content%}
|
2024-01-04 21:33:13 +01:00
|
|
|
<div class="page-container">
|
2023-12-19 17:33:46 +01:00
|
|
|
<div class="post">
|
2024-01-04 21:33:13 +01:00
|
|
|
<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>
|
2024-01-04 21:33:13 +01:00
|
|
|
<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">
|
2024-01-06 14:14:15 +01:00
|
|
|
<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">
|
2024-01-06 14:14:15 +01:00
|
|
|
{%for comment in object.sorted_comments%}
|
2024-01-04 21:33:13 +01:00
|
|
|
<div class="single-comment">
|
2024-01-06 14:14:15 +01:00
|
|
|
<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>
|
2024-01-04 21:33:13 +01:00
|
|
|
</div>
|
2023-12-19 17:33:46 +01:00
|
|
|
{%endfor%}
|
|
|
|
</div>
|
2024-01-04 21:33:13 +01:00
|
|
|
</div>
|
2023-12-19 17:33:46 +01:00
|
|
|
{%endblock content%}
|