mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Allow to configure the global theme using the WebUI
This commit is contained in:
parent
3e657a7cac
commit
f88584e1ca
5 changed files with 16 additions and 6 deletions
|
@ -40,14 +40,12 @@
|
|||
|
||||
|
||||
|
||||
{% if not app.user.theme is defined %}
|
||||
{% set theme = global_theme %}
|
||||
{% if app.user.theme is not defined or app.user.theme is null %}
|
||||
{% set theme = settings_instance('customization').theme %}
|
||||
{% else %}
|
||||
{% set theme = app.user.theme %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% if theme and theme in available_themes and encore_entry_exists('theme_' ~ theme) %}
|
||||
{{ encore_entry_link_tags('theme_' ~ theme) }}
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue