summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-08 00:35:40 +0000
committercitrons <citrons>2021-08-08 00:35:40 +0000
commit8ae879fdfe18997a82535ed64acc40fe281d759c (patch)
tree5894c346e4bf02b08385ab9f86e6d7fc674e714f
parent6ccb87c7c0e735664061154ff6ca6980fa332083 (diff)
one's role in a forum is now viewable
-rw-r--r--apioforum/templates/view_forum.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index c42b7b8..0eada1a 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -21,6 +21,11 @@
</p>
{% endif %}
+ {% set role = get_user_role(forum.id, g.user) %}
+ {% if role != "other" %}
+ <p>your role in this forum: {{role}}</p>
+ {% endif %}
+
<p>available tags:
{% for the_tag in avail_tags %}
{{tag(the_tag)}}