diff options
author | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-10-28 19:14:24 -0600 |
---|---|---|
committer | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-10-28 19:14:24 -0600 |
commit | 40fc089d6251d364a0eb4a975f4614ef099c28a5 (patch) | |
tree | af86933ce5d3a967e78cc75bbb5dff1f6df125e5 | |
parent | 7470d61a07206511e903cd1b7796abc36cc130d6 (diff) |
Only show moderators link for local communities
-rw-r--r-- | src/routes/communities.rs | 14 |
1 files changed, 13 insertions, 1 deletions
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( } } <p>{community_info.description.as_ref()}</p> - <p><a href={format!("/communities/{}/moderators", community_id)}>{lang.tr("moderators", None)}</a></p> + { + if community_info.as_ref().local { + Some(render::rsx! { + <p> + <a href={format!("/communities/{}/moderators", community_id)}> + {lang.tr("moderators", None)} + </a> + </p> + }) + } else { + None + } + } </div> <div class={"sortOptions"}> <span>{lang.tr("sort", None)}</span> |