mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
18 lines
558 B
Rust
18 lines
558 B
Rust
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
use crate::templates::components::tooltip::{Hint, HintLink};
|
|
|
|
pub fn limit_key_hint(key: &str) -> Option<Hint<'static>> {
|
|
match key {
|
|
"feature_guild_create" => Some(Hint {
|
|
name: Some("Community Creation Access"),
|
|
body: "Admins with the wildcard ACL can always create communities.",
|
|
link: Some(HintLink::new(
|
|
"/instance-config#community-creation",
|
|
"Community creation policy",
|
|
)),
|
|
}),
|
|
_ => None,
|
|
}
|
|
}
|