mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-09 20:05:39 +00:00
Moved user profile edit and user logout navigation items into sidebar info block for a more condensed UI.
This commit is contained in:
parent
1cd5ce9ccc
commit
abf1f4eca3
@ -13,10 +13,17 @@
|
|||||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||||
<!-- Tell Safari to not recognise telephone numbers -->
|
<!-- Tell Safari to not recognise telephone numbers -->
|
||||||
<meta name="format-detection" content="telephone=no">
|
<meta name="format-detection" content="telephone=no">
|
||||||
{% assets "css_main" -%}<link rel="stylesheet" href="{{ ASSET_URL }}">{%- endassets %}
|
{% assets "css_main" -%}
|
||||||
|
<link rel="stylesheet" href="{{ ASSET_URL }}">{%- endassets %}
|
||||||
{% if SETTING.get('custom_css') %}
|
{% if SETTING.get('custom_css') %}
|
||||||
<link rel="stylesheet" href="/static/custom/{{ SETTING.get('custom_css') }}">
|
<link rel="stylesheet" href="/static/custom/{{ SETTING.get('custom_css') }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<style type="text/css">
|
||||||
|
.sidebar .image { padding-top: 0.7em; }
|
||||||
|
.sidebar .info { color: #fff; }
|
||||||
|
.sidebar .info p { margin: 0; }
|
||||||
|
.sidebar .info a { font-size: 0.8em; }
|
||||||
|
</style>
|
||||||
{% block head_styles %}{% endblock %}
|
{% block head_styles %}{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
@ -67,24 +74,16 @@
|
|||||||
<img src="{{ user_image_url }}" class="img-circle elevation-2" alt="User Image">
|
<img src="{{ user_image_url }}" class="img-circle elevation-2" alt="User Image">
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<a href="{{ url_for('user.profile') }}"
|
<p>{{ current_user.firstname }} {{ current_user.lastname }}</p>
|
||||||
class="d-block">{{ current_user.firstname }} {{ current_user.lastname }}</a>
|
<span>
|
||||||
|
<a href="{{ url_for('user.profile') }}"><i class="nav-icon fa-solid fa-user"></i> Edit Profile</a>
|
||||||
|
|
|
||||||
|
<a href="{{ url_for('index.logout') }}"><i class="nav-icon fa-solid fa-sign-out-alt"></i> Logout</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
|
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
|
||||||
<li class="{{ 'nav-item active' if active_page == 'user_profile' else 'nav-item' }}">
|
|
||||||
<a href="{{ url_for('user.profile') }}" class="nav-link">
|
|
||||||
<i class="nav-icon fa-solid fa-user"></i>
|
|
||||||
<p>Profile</p>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a href="{{ url_for('index.logout') }}" class="nav-link">
|
|
||||||
<i class="nav-icon fa-solid fa-sign-out-alt"></i>
|
|
||||||
<p>Logout</p>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-header">Zone Management</li>
|
<li class="nav-header">Zone Management</li>
|
||||||
<li class="{{ 'nav-item active' if active_page == 'nav-item dashboard' else 'nav-item' }}">
|
<li class="{{ 'nav-item active' if active_page == 'nav-item dashboard' else 'nav-item' }}">
|
||||||
<a href="{{ url_for('dashboard.dashboard') }}" class="nav-link">
|
<a href="{{ url_for('dashboard.dashboard') }}" class="nav-link">
|
||||||
|
Loading…
Reference in New Issue
Block a user