From 9b2d58971aa303486502d83a4e0f821c6f00d0ac Mon Sep 17 00:00:00 2001 From: rra Date: Thu, 21 Mar 2024 21:55:05 +0100 Subject: [PATCH] add current page to community edit and community mods --- app/community/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/community/routes.py b/app/community/routes.py index ed350e22..2ef4f1cc 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -651,7 +651,7 @@ def community_edit(community_id: int): form.topic.data = community.topic_id if community.topic_id else None form.default_layout.data = community.default_layout return render_template('community/community_edit.html', title=_('Edit community'), form=form, - current_app=current_app, + current_app=current_app, current="edit_settings", community=community, moderating_communities=moderating_communities(current_user.get_id()), joined_communities=joined_communities(current_user.get_id())) else: @@ -692,7 +692,7 @@ def community_mod_list(community_id: int): filter(CommunityMember.community_id == community_id, or_(CommunityMember.is_moderator == True, CommunityMember.is_owner == True)).all() return render_template('community/community_mod_list.html', title=_('Moderators for %(community)s', community=community.display_name()), - moderators=moderators, community=community, + moderators=moderators, community=community, current="moderators", moderating_communities=moderating_communities(current_user.get_id()), joined_communities=joined_communities(current_user.get_id()) )