mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.5
- Rewrite theme system - Fixes
This commit is contained in:
1 parent
98ffa929ef
commit
1f32755ade
10 files changed
+40
-22
No files matched your search
@@ -11,11 +11,11 @@
|
||||
<!-- LINKS -->
|
||||
<link rel="icon" type="image/png" href="{{ url_for('static',filename='img/logo.png') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/custom.css') }}"/>
|
||||
{% if app_theme == 'zephyr'%}
|
||||
{% if current_user.ui_theme == 'zephyr'%}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/Bootstrap/zephyr.css') }}"/>
|
||||
{% elif app_theme == 'lumen' %}
|
||||
{% elif current_user.ui_theme == 'lumen' %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/Bootstrap/lumen.css') }}"/>
|
||||
{% elif app_theme == 'simplex' %}
|
||||
{% elif current_user.ui_theme == 'simplex' %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/Bootstrap/simplex.css') }}"/>
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.min.css') }}"/>
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
<!-- LINKS -->
|
||||
<link rel="icon" type="image/png" href="{{ url_for('static',filename='img/logo.png') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/custom.css') }}"/>
|
||||
{% if app_theme == 'zephyr' %}
|
||||
{% if current_user.ui_theme == 'zephyr' %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/Bootstrap/zephyr.css') }}"/>
|
||||
{% elif app_theme == 'lumen' %}
|
||||
{% elif current_user.ui_theme == 'lumen' %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/Bootstrap/lumen.css') }}"/>
|
||||
{% elif app_theme == 'simplex' %}
|
||||
{% elif current_user.ui_theme == 'simplex' %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/Bootstrap/simplex.css') }}"/>
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.min.css') }}"/>
|
||||
|
||||
@@ -30,8 +30,19 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<div class="d-flex">
|
||||
<a class="btn btn-outline-warning" type="submit" href="{{ url_for('auth.logout') }}">logout</a>
|
||||
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
||||
<div class="btn-group dropstart">
|
||||
<button type="button" class="btn btn-secondary btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
UI
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="{{ url_for('base.change_theme',name='default') }}">default</a></li>
|
||||
<li><a class="dropdown-item" href="{{ url_for('base.change_theme',name='zephyr') }}">Zephyr</a></li>
|
||||
<li><a class="dropdown-item" href="{{ url_for('base.change_theme',name='simplex') }}">Simplex</a></li>
|
||||
<li><a class="dropdown-item" href="{{ url_for('base.change_theme',name='lumen') }}">Lumen</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="btn btn-outline-warning btn-sm" type="submit" href="{{ url_for('auth.logout') }}">logout</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user