mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Allow to configure which themes should be available via parameters.yaml
This commit is contained in:
parent
489b3e2c21
commit
08c97282a3
8 changed files with 99 additions and 26 deletions
|
@ -41,7 +41,7 @@
|
|||
|
||||
|
||||
|
||||
{% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') and encore_entry_exists('theme_' ~ theme) %}
|
||||
{% if theme and theme in available_themes and encore_entry_exists('theme_' ~ theme) %}
|
||||
{{ encore_entry_link_tags('theme_' ~ theme) }}
|
||||
{% else %}
|
||||
{{ encore_entry_link_tags('theme_bootstrap') }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue