From a21ab5c2a8d35cfc737c353a5ec868847a9e300a Mon Sep 17 00:00:00 2001 From: GrO2Bl Date: Wed, 12 Jun 2024 20:21:23 +0330 Subject: [PATCH] Add moderation link to the footer #1156 --- templates/base.rs.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/base.rs.html b/templates/base.rs.html index 564c1f84..3940bf4d 100644 --- a/templates/base.rs.html +++ b/templates/base.rs.html @@ -87,6 +87,10 @@ @i18n!(ctx.1, "Privacy policy") @if ctx.2.clone().map(|u| u.is_admin()).unwrap_or(false) { @i18n!(ctx.1, "Administration") + } else { + @if ctx.2.clone().map(|u| u.is_moderator()).unwrap_or(false) { + @i18n!(ctx.1, "Moderation") + } }