mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-10 06:08:29 -06:00
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
{% extends 'layouts/index.html' %}
|
|
{% block content %}
|
|
<div class="post-box">
|
|
{{ post.text }}
|
|
<br>
|
|
<div class="post-author">
|
|
<em>Posted by <a href="{{ url_for('main.view_user', username=post.author.username) }}">{{ post.author.name }}</a></em> <span
|
|
title="{{ post.date_posted }}">{{ post.get_time_ago() }} ago</span>.
|
|
</div>
|
|
<div class="post-comments">
|
|
{% if current_user.is_authenticated %}
|
|
<div class="post-comment add-comment">
|
|
<form method="POST" action="{{ url_for('forms.add_comment', post_id=post.id) }}">
|
|
{{ form.csrf_token }}
|
|
{{ form.text }}<input type=submit value="Add Comment">
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
{% for comment in post.comments %}
|
|
<div class="post-comment">
|
|
<span class="comment-text">"{{ comment.text }}"</span> —
|
|
<a class="comment-author"
|
|
href="{{ url_for('main.view_user', username=comment.author) }}">{{ comment.author.name }}
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|