themes initialized! many new partials and scss integrations across most templates; core.settings contains COMPRESS test fallback; apps.dashboard.views updated for new alerts and styling
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -15,21 +15,19 @@
|
||||
{% 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>
|
||||
{% for theme in themes %}
|
||||
<div class="theme-picker-item">
|
||||
<div class="swatch {{ theme.name }}{% if user_theme == theme.name %} active{% endif %}{% if theme.locked %} locked{% endif %}"></div>
|
||||
{% if not theme.locked %}
|
||||
<form method="POST" action="{% url 'set_theme' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" name="theme" value="{{ theme.name }}" class="btn btn-confirm">OK</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<span class="btn btn-disabled">🔒</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user