summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/view_thread.html
blob: f38cf34240a08774a008fa7addc6f6c2dcbb3441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% from 'common.html' import disp_post %}
{% extends 'base.html' %}
{% block header %}
<h1>{%block title %}{{thread.title}}{% endblock %}</h1>
{% endblock %}

{%block content%}
<div class="posts">
    {% for post in posts %}
    {% call disp_post(post, True) %}
        {{ rendered_posts[loop.index0] | safe}}
    {% endcall %}
    {% endfor %}
</div>
{% if g.user %}
<form class="new-post" action="{{url_for('thread.create_post',thread_id=thread_id)}}" method="POST">
    <textarea class="new-post-box" placeholder="your post here..." name="content"></textarea>
    <input type="submit" value="yes">
</form>
{% else %}
<p>please log in to reply to this thread</p>
{% endif %}
{% endblock %}