~vpzom/hitide

40fc089d6251d364a0eb4a975f4614ef099c28a5 — Colin Reeder a month ago 7470d61
Only show moderators link for local communities
1 files changed, 13 insertions(+), 1 deletions(-)

M src/routes/communities.rs
M src/routes/communities.rs => src/routes/communities.rs +13 -1
@@ 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>