aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/view_thread.html
blob: dd41d8714163184c376a3112aada7048c41fd4e7 (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
31
32
33
34
35
36
{% from 'common.html' import disp_post,tag,thread_breadcrumb %}
{% extends 'base.html' %}
{% block header %}
<h1>{%block title %}{{thread.title}}{% endblock %}</h1>
{{ thread_breadcrumb(thread) }}
{% endblock %}

{%block content%}
<div class="thread-top-bar">
    <span class="thread-top-bar-a">
        {% if g.user == thread.creator %}
        <a class="actionbutton" href="{{url_for('thread.config_thread',thread_id=thread.id)}}">configure thread</a>
        {% endif %}
    </span>
    &nbsp;
    <span class="thread-top-bar-b">
        {% for the_tag in tags %}
            {{ tag(the_tag) }}
        {% endfor %}
    </span>
</div>

<div class="posts">
    {% for post in posts %}
	{{ disp_post(post, True) }}
    {% 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 %}