removed debug code
This commit is contained in:
parent
72b0bd7f1e
commit
26408c33f4
@ -63,14 +63,15 @@ def get_theming_values(space, user):
|
|||||||
for logo in list(tv.keys()):
|
for logo in list(tv.keys()):
|
||||||
if logo.startswith('logo_color_') and getattr(space, logo, None):
|
if logo.startswith('logo_color_') and getattr(space, logo, None):
|
||||||
tv[logo] = getattr(space, logo).file.url
|
tv[logo] = getattr(space, logo).file.url
|
||||||
if space.custom_space_theme:
|
|
||||||
tv['custom_theme'] = space.custom_space_theme.file.url
|
if space.custom_space_theme:
|
||||||
if space.space_theme in themes:
|
tv['custom_theme'] = space.custom_space_theme.file.url
|
||||||
tv['theme'] = static(themes[space.space_theme])
|
if space.space_theme in themes:
|
||||||
if space.nav_logo:
|
tv['theme'] = static(themes[space.space_theme])
|
||||||
tv['nav_logo'] = space.nav_logo.file.url
|
if space.nav_logo:
|
||||||
if space.nav_bg_color:
|
tv['nav_logo'] = space.nav_logo.file.url
|
||||||
tv['nav_bg_color'] = space.nav_bg_color
|
if space.nav_bg_color:
|
||||||
if space.nav_text_color and space.nav_text_color in nav_text_type_mapping:
|
tv['nav_bg_color'] = space.nav_bg_color
|
||||||
tv['nav_text_class'] = nav_text_type_mapping[space.nav_text_color]
|
if space.nav_text_color and space.nav_text_color in nav_text_type_mapping:
|
||||||
|
tv['nav_text_class'] = nav_text_type_mapping[space.nav_text_color]
|
||||||
return tv
|
return tv
|
||||||
|
@ -57,7 +57,7 @@ COMMENT_PREF_DEFAULT = bool(int(os.getenv('COMMENT_PREF_DEFAULT', True)))
|
|||||||
FRACTION_PREF_DEFAULT = bool(int(os.getenv('FRACTION_PREF_DEFAULT', False)))
|
FRACTION_PREF_DEFAULT = bool(int(os.getenv('FRACTION_PREF_DEFAULT', False)))
|
||||||
KJ_PREF_DEFAULT = bool(int(os.getenv('KJ_PREF_DEFAULT', False)))
|
KJ_PREF_DEFAULT = bool(int(os.getenv('KJ_PREF_DEFAULT', False)))
|
||||||
STICKY_NAV_PREF_DEFAULT = bool(int(os.getenv('STICKY_NAV_PREF_DEFAULT', True)))
|
STICKY_NAV_PREF_DEFAULT = bool(int(os.getenv('STICKY_NAV_PREF_DEFAULT', True)))
|
||||||
UNAUTHENTICATED_THEME_FROM_SPACE = 2 #int(os.getenv('UNAUTHENTICATED_THEME_FROM_SPACE', 0))
|
UNAUTHENTICATED_THEME_FROM_SPACE = int(os.getenv('UNAUTHENTICATED_THEME_FROM_SPACE', 0))
|
||||||
|
|
||||||
# minimum interval that users can set for automatic sync of shopping lists
|
# minimum interval that users can set for automatic sync of shopping lists
|
||||||
SHOPPING_MIN_AUTOSYNC_INTERVAL = int(
|
SHOPPING_MIN_AUTOSYNC_INTERVAL = int(
|
||||||
|
Loading…
Reference in New Issue
Block a user