diff options
author | citrons <citrons> | 2021-08-05 11:28:53 +0000 |
---|---|---|
committer | citrons <citrons> | 2021-08-05 11:28:53 +0000 |
commit | 76cb3a6be912e55ffe7f6e7c221000f57cff6d4a (patch) | |
tree | 7b3f47687d9b41e112c15055ea71a279a322ff60 /apioforum/templates/view_thread.html | |
parent | fd04b1ea444b2b77cb56ed7a67b8ac2225cfa6bd (diff) |
make many of the permissions do things. somewhat functional menus for role configuration and assignment. big brother thoughtcrime message deletion. mark roles next to usernames on posts. other things I may have forgot
Diffstat (limited to 'apioforum/templates/view_thread.html')
-rw-r--r-- | apioforum/templates/view_thread.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index dd41d87..da8df74 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -1,16 +1,19 @@ {% from 'common.html' import disp_post,tag,thread_breadcrumb %} {% extends 'base.html' %} {% block header %} -<h1>{%block title %}{{thread.title}}{% endblock %}</h1> +<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 %} + {% 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"> @@ -22,7 +25,7 @@ <div class="posts"> {% for post in posts %} - {{ disp_post(post, True) }} + {{ disp_post(post, buttons=True, forum=thread.forum) }} {% endfor %} </div> {% if g.user %} |