Add moderation link to the footer #1156

This commit is contained in:
GrO2Bl 2024-06-12 20:21:23 +03:30
parent 304fb740d8
commit a21ab5c2a8

View file

@ -87,6 +87,10 @@
<a href="@uri!(instance::privacy)">@i18n!(ctx.1, "Privacy policy")</a>
@if ctx.2.clone().map(|u| u.is_admin()).unwrap_or(false) {
<a href="@uri!(instance::admin)">@i18n!(ctx.1, "Administration")</a>
} else {
@if ctx.2.clone().map(|u| u.is_moderator()).unwrap_or(false) {
<a href="@uri!(instance::admin_mod)">@i18n!(ctx.1, "Moderation")</a>
}
}
</div>
<div>