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 %}

View File

@@ -1,5 +1,8 @@
{% load compress %}
{% load static %}
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<html lang="en">
<head>
<meta charset="UTF-8">
@@ -7,10 +10,12 @@
<meta name="author" content="Disco DeDisco">
<meta name="robots" content="noindex, nofollow">
<title>Earthman RPG | {% block title_text %}{% endblock title_text %}</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/css/bootstrap.min.css"/>
{% compress css %}
<link type="text/x-scss" rel="stylesheet" href="{% static 'scss/core.scss' %}">
{% endcompress %}
</head>
<body>
<body class="{{ user_theme }}">
<div class="container">
<nav class="navbar">
<div class="container-fluid">