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 %}
|
||||
|
||||
Reference in New Issue
Block a user