diff options
author | Colin Reeder <colin@vpzom.click> | 2020-06-27 11:23:35 -0600 |
---|---|---|
committer | Colin Reeder <colin@vpzom.click> | 2020-06-27 11:23:35 -0600 |
commit | 6201f0eb7ec03dd4821d76f8561ec64f54852390 (patch) | |
tree | 9b50cc942d3be29abf152a5f16731fb232943e06 /src | |
parent | beacdedfe0d8f2810287922e5d260c35b78179f8 (diff) |
Add Create Community link to Communities page
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/communities.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/communities.rs b/src/routes/communities.rs index aeec354..f8d1415 100644 --- a/src/routes/communities.rs +++ b/src/routes/communities.rs @@ -30,6 +30,13 @@ async fn page_communities( <h1>{"Communities"}</h1> <div> <h2>{"Local"}</h2> + { + if base_data.login.is_some() { + Some(render::rsx! { <a href={"/new_community"}>{"Create Community"}</a> }) + } else { + None + } + } <ul> { communities.iter() |