Refactor primary color to settings variable (#1775)

This commit is contained in:
Felix Rindt
2020-09-21 17:44:43 +02:00
committed by GitHub
parent cd6e6004af
commit 429ad4da37
4 changed files with 4 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ class TemplateBasedMailRenderer(BaseHTMLMailRenderer):
'site_url': settings.SITE_URL,
'body': body_md,
'subject': str(subject),
'color': '#8E44B3',
'color': settings.PRETIX_PRIMARY_COLOR,
'rtl': get_language() in settings.LANGUAGES_RTL
}
if self.event:

View File

@@ -91,7 +91,7 @@ def send_notification_mail(notification: Notification, user: User):
ctx = {
'site': settings.PRETIX_INSTANCE_NAME,
'site_url': settings.SITE_URL,
'color': '#8E44B3',
'color': settings.PRETIX_PRIMARY_COLOR,
'notification': notification,
'settings_url': build_absolute_uri(
'control:user.settings.notifications',

View File

@@ -1580,7 +1580,7 @@ Your {event} team"""))
'type': bool
},
'primary_color': {
'default': '#8E44B3',
'default': settings.PRETIX_PRIMARY_COLOR,
'type': str,
},
'theme_color_success': {