mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
domainconfig: add portal custom intros
This commit is contained in:
parent
0095549b18
commit
91f4e5fa42
3 changed files with 12 additions and 0 deletions
|
@ -364,9 +364,13 @@
|
|||
"domain_config_mail_out": "Outgoing emails",
|
||||
"domain_config_portal_logo": "Custom logo",
|
||||
"domain_config_portal_logo_help": "Accept .svg, .png and .jpeg. Prefer a monochrome .svg with <code>fill: currentColor</code> so that the logo adapts to the themes.",
|
||||
"domain_config_portal_public_intro": "Custom public intro",
|
||||
"domain_config_portal_public_intro_help": "You can use HTML, basic styles will be applied to generic elements.",
|
||||
"domain_config_portal_theme": "Default theme",
|
||||
"domain_config_portal_theme_help": "Users are allowed to choose another one in their settings.",
|
||||
"domain_config_portal_title": "Custom title",
|
||||
"domain_config_portal_user_intro": "Custom user intro",
|
||||
"domain_config_portal_user_intro_help": "You can use HTML, basic styles will be applied to generic elements.",
|
||||
"domain_config_show_other_domains_apps": "Show other domain's apps",
|
||||
"domain_config_xmpp": "Instant messaging (XMPP)",
|
||||
"domain_config_xmpp_help": "NB: some XMPP features will require that you update your DNS records and regenerate your Lets Encrypt certificate to be enabled",
|
||||
|
|
|
@ -27,6 +27,12 @@ name = "Features"
|
|||
choices = ["system", "light", "dark", "cupcake", "bumblebee", "emerald", "corporate", "synthwave", "retro", "cyberpunk", "valentine", "halloween", "garden", "forest", "aqua", "lofi", "pastel", "fantasy", "wireframe", "black", "luxury", "dracula", "cmyk", "autumn", "business", "acid", "lemonade", "night", "coffee", "winter"]
|
||||
default = "system"
|
||||
|
||||
[feature.portal.portal_user_intro]
|
||||
type = "text"
|
||||
|
||||
[feature.portal.portal_public_intro]
|
||||
type = "text"
|
||||
|
||||
# FIXME link to GCU
|
||||
|
||||
[feature.app]
|
||||
|
|
|
@ -760,6 +760,8 @@ class DomainConfigPanel(ConfigPanel):
|
|||
"portal_title",
|
||||
"portal_logo",
|
||||
"portal_theme",
|
||||
"portal_user_intro",
|
||||
"portal_public_intro",
|
||||
]
|
||||
|
||||
if _get_parent_domain_of(self.entity, topest=True) is None and any(
|
||||
|
|
Loading…
Add table
Reference in a new issue