diff options
author | citrons <citrons> | 2021-07-31 10:16:24 +0000 |
---|---|---|
committer | citrons <citrons> | 2021-07-31 10:16:24 +0000 |
commit | 3ea7198a166ac161df82a35c135a59bbd67ee645 (patch) | |
tree | 0b5b7b2ba6b6e08cfc5b1239f180ee25e7cb8bd5 /apioforum/templates | |
parent | 96fcef98d7bc0fd8940959077c009016aae56fd0 (diff) |
"just commit" - ubq
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/view_forum.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index d3d09e1..98d2110 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -8,10 +8,11 @@ {%endblock%} {%block content%} -{% if forum.description %} {{forum.description|md|safe}} -<hr/> +{% if is_bureaucrat(forum.id, g.user) %} + <p><a class="actionbutton" href="{{url_for('forum.edit_roles')}}">role/permission settings</a></p> {% endif %} +<hr/> {% if subforums %} <h2>subforæ</h2> @@ -43,6 +44,8 @@ {% else %} <p>please log in to create a new thread</p> {% endif %} + +{% if has_permission(forum.id, g.user, "p_view_threads") %} <div class="thread-list"> {%for thread in threads%} <div class="listing"> @@ -80,5 +83,8 @@ </div> {%endfor%} </div> +{% else %} +<p>you do not have permission to view threads in this forum</p> +{% endif %} {%endblock%} |