aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/view_thread.html
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-06-15 23:40:03 +0000
committerubq323 <ubq323>2021-06-15 23:40:03 +0000
commit8ec18ae1d985aee2bcf146c1e4f783b91643406a (patch)
tree2ce44f58bf2be3a2e5ff140f6b1dd9174cb69efe /apioforum/templates/view_thread.html
parentcdc3350992c11464c61782dd208d7671b56871ac (diff)
parent6096acce8b922af98e6846a687fcfd19cf0370cc (diff)
merge tags into trunk
Diffstat (limited to 'apioforum/templates/view_thread.html')
-rw-r--r--apioforum/templates/view_thread.html21
1 files changed, 16 insertions, 5 deletions
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html
index eaaf581..abd6aaa 100644
--- a/apioforum/templates/view_thread.html
+++ b/apioforum/templates/view_thread.html
@@ -1,13 +1,24 @@
-{% from 'common.html' import disp_post %}
+{% from 'common.html' import disp_post,tag %}
{% extends 'base.html' %}
{% block header %}
<h1>{%block title %}{{thread.title}}{% endblock %}</h1>
{% endblock %}
{%block content%}
-{% if g.user == thread.creator %}
-<a class="actionbutton" href="{{url_for('thread.config_thread',thread_id=thread_id)}}">configure thread</a>
-{% endif %}
+<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 %}
{% call disp_post(post, True) %}
@@ -16,7 +27,7 @@
{% endfor %}
</div>
{% if g.user %}
-<form class="new-post" action="{{url_for('thread.create_post',thread_id=thread_id)}}" method="POST">
+<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>