mirror of https://gitlab.com/bashrc2/epicyon
Only show modertion link if the account is a moderator
parent
87c14f0c0f
commit
36963fe3fc
|
@ -388,9 +388,10 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
translate['Blogs']: usersPath + '/tlblogs#timeline',
|
translate['Blogs']: usersPath + '/tlblogs#timeline',
|
||||||
translate['Events']: usersPath + '/tlevents#timeline',
|
translate['Events']: usersPath + '/tlevents#timeline',
|
||||||
translate['Skip to Newswire']: '#newswire',
|
translate['Skip to Newswire']: '#newswire',
|
||||||
translate['Skip to Links']: '#links',
|
translate['Skip to Links']: '#links'
|
||||||
translate['Mod']: usersPath + '/moderation'
|
|
||||||
}
|
}
|
||||||
|
if moderator:
|
||||||
|
navLinks[translate['Mod']] = usersPath + '/moderation'
|
||||||
tlStr += htmlKeyboardNavigation(navLinks)
|
tlStr += htmlKeyboardNavigation(navLinks)
|
||||||
|
|
||||||
# banner and row of buttons
|
# banner and row of buttons
|
||||||
|
|
Loading…
Reference in New Issue