summary refs log tree commit diff
path: root/templates/view_thread.html
blob: 669646261c3cc725d68f62e95d76b48b3aa92218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends 'base.html' %}

{% block content %}

<h2>{{ thread.title }}</h2>
<p>{{ thread.created_at.strftime('%Y-%m-%d %H:%M') }}</p>
{% for post in pdx %}
<div class="container">
    <div class="userbox">
        <p> Poster: <a href="{{url_for('details', light=post.authour.name)}}"> {{post.authour.name}} </a>
        </p>
        <p> Date: {{post.created_at.strftime('%Y-%m-%d %H:%M')}} </p>
    </div>
    <div class="post-content">
        <p>
            <a href="{{url_for('post', post_id=post.id)}}">
                <h4> {{post.title}} </h4>
            </a>
        </p>
        {{ post.content|markdown|safe }}
    </div>
    <br> <br>
</div>
{% endfor %}
<div class="post-actions">
    <a href="{{ url_for('create', reply=thread.id)}}"> Reply</a> ~
    <a href="{{ url_for('index') }}">Back to posts</a>
</div>

{% endblock %}