blob: da8df74a4a25e6ac8f9168f57ccdb1ba8d5d38aa (
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
37
38
39
|
{% from 'common.html' import disp_post,tag,thread_breadcrumb %}
{% extends 'base.html' %}
{% block header %}
<h1>{%block title %}{{thread.title}}{% endblock %} <span class="thing-id">#{{thread.id}}</span></h1>
{{ thread_breadcrumb(thread) }}
{% endblock %}
{%block content%}
<div class="thread-top-bar">
<span class="thread-top-bar-a">
{% if g.user == thread.creator or has_permission(thread.forum, g.user, "p_manage_threads") %}
<a class="actionbutton" href="{{url_for('thread.config_thread',thread_id=thread.id)}}">configure thread</a>
{% endif %}
{% if has_permission(thread.forum, g.user, "p_delete_posts") %}
<a class="actionbutton" href="{{url_for('thread.delete_thread',thread_id=thread.id)}}">delete thread</a>
{% endif %}
</span>
<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, buttons=True, forum=thread.forum) }}
{% 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 %}
|