mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:49:15 +02:00
Resolve "Add optional donation/contribution link in-app"
This commit is contained in:
parent
5936dfc2bf
commit
01223afa80
17 changed files with 312 additions and 8 deletions
|
@ -82,6 +82,35 @@ class InstanceContactEmail(types.StringPreference):
|
|||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceSupportMessage(types.StringPreference):
|
||||
show_in_api = True
|
||||
section = instance
|
||||
name = "support_message"
|
||||
verbose_name = "Support message"
|
||||
default = ""
|
||||
help_text = (
|
||||
"A short message that will be displayed periodically to local users. "
|
||||
"Use it to ask for financial support or anything else you might need. "
|
||||
"(markdown allowed)."
|
||||
)
|
||||
widget = widgets.Textarea
|
||||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceFunkwhaleSupportMessageEnabled(types.BooleanPreference):
|
||||
show_in_api = True
|
||||
section = instance
|
||||
name = "funkwhale_support_message_enabled"
|
||||
verbose_name = "Funkwhale Support message"
|
||||
default = True
|
||||
help_text = (
|
||||
"If this is enabled, we will periodically display a message to encourage "
|
||||
"local users to support Funkwhale."
|
||||
)
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class RavenDSN(types.StringPreference):
|
||||
show_in_api = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue