From 40fc089d6251d364a0eb4a975f4614ef099c28a5 Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Wed, 28 Oct 2020 19:14:24 -0600 Subject: Only show moderators link for local communities --- src/routes/communities.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/routes/communities.rs b/src/routes/communities.rs index 31aca20..67d670f 100644 --- a/src/routes/communities.rs +++ b/src/routes/communities.rs @@ -230,7 +230,19 @@ async fn page_community( } }

{community_info.description.as_ref()}

-

{lang.tr("moderators", None)}

+ { + if community_info.as_ref().local { + Some(render::rsx! { +

+ + {lang.tr("moderators", None)} + +

+ }) + } else { + None + } + }
{lang.tr("sort", None)} -- cgit v1.2.3