mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add current page to community edit and community mods
This commit is contained in:
parent
817214b553
commit
9b2d58971a
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue