moved theming functions to main tag

This commit is contained in:
vabene1111
2024-01-07 17:17:14 +08:00
parent 1dda4126c1
commit 5a5ce4d736
3 changed files with 38 additions and 10 deletions

View File

@@ -29,9 +29,9 @@
<meta name="apple-mobile-web-app-capable" content="yes"/>
<!-- Bootstrap 4 -->
<link id="id_main_css" href="{% theme_url request %}" rel="stylesheet">
{% if request.user.is_authenticated and request.space.custom_space_theme %}
<link id="id_custom_css" href="{% custom_theme request %}" rel="stylesheet">
<link id="id_main_css" href="{{ theme_values.theme }}" rel="stylesheet">
{% if theme_values.custom_theme %}
<link id="id_custom_css" href="{{ theme_values.custom_theme }}" rel="stylesheet">
{% endif %}