mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Use webpack entrypoints for bootstrap and bootswatch themes
This allows us to utilize the webpack versioning mechanism, to avoid display issues, when upgrading bootstrap
This commit is contained in:
parent
5c303225d7
commit
489b3e2c21
31 changed files with 541 additions and 71 deletions
|
@ -41,10 +41,10 @@
|
|||
|
||||
|
||||
|
||||
{% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') %}
|
||||
<link rel="stylesheet" href="{{ preload(asset('build/themes/' ~ theme ~ '.css'), {as: 'style'}) }}">
|
||||
{% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') and encore_entry_exists('theme_' ~ theme) %}
|
||||
{{ encore_entry_link_tags('theme_' ~ theme) }}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ preload(asset('build/themes/bootstrap.css'), {as: 'style'}) }}">
|
||||
{{ encore_entry_link_tags('theme_bootstrap') }}
|
||||
{% endif %}
|
||||
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue