new FT test_theme for theme switcher functionality; theme-switcher content added to home.html, several dashboard views & urls, all appropriate ITs & UTs; lyric user model saves theme (migrations run); django-compressor and django-libsass libraries added to dependencies

This commit is contained in:
Disco DeDisco
2026-03-02 13:57:03 -05:00
parent 143e81fc41
commit e142e5d4d7
14 changed files with 624 additions and 3 deletions

View File

@@ -11,3 +11,25 @@
{% block scripts %}
{% include "apps/dashboard/_partials/_scripts.html" %}
{% endblock scripts %}
{% block content %}
{% if user.is_authenticated %}
<section class="theme-picker">
<div class="theme-picker-item">
<div class="swatch theme-default{% if user_theme == 'theme-default' %} active{% endif %}"></div>
<form method="POST" action="{% url 'set_theme' %}">
{% csrf_token %}
<button type="submit" name="theme" value="theme-default" class="btn btn-confirm">OK</button>
</form>
</div>
<div class="theme-picker-item">
<div class="swatch theme-nirvana locked"></div>
<span class="btn btn-disabled">&#x1F512;</span>
</div>
<div class="theme-picker-item">
<div class="swatch theme-sheol locked"></div>
<span class="btn btn-disabled">&#x1F512;</span>
</div>
</section>
{% endif %}
{% endblock content %}