fix: move magic b
template context var to wuttaweb
This commit is contained in:
parent
2903b376b5
commit
91ea9021d7
|
@ -186,7 +186,6 @@ def before_render(event):
|
|||
# theme - we only want do this for classic web app, *not* API
|
||||
# TODO: so, clearly we need a better way to distinguish the two
|
||||
if 'tailbone.theme' in request.registry.settings:
|
||||
renderer_globals['b'] = 'o' if request.use_oruga else 'b' # for buefy
|
||||
renderer_globals['theme'] = request.registry.settings['tailbone.theme']
|
||||
# note, this is just a global flag; user still needs permission to see picker
|
||||
expose_picker = config.get_bool('tailbone.themes.expose_picker',
|
||||
|
|
Loading…
Reference in a new issue