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:
@@ -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">🔒</span>
|
||||
</div>
|
||||
<div class="theme-picker-item">
|
||||
<div class="swatch theme-sheol locked"></div>
|
||||
<span class="btn btn-disabled">🔒</span>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user