add sidebar toggle button

master
hoellen 6 years ago
parent 92ef73fa74
commit 167e5a87e1

@ -8,3 +8,15 @@
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-collapse .sidebar h4 {
display: none !important;
}
.logo a {
color: #fff;
}
.sidebar-toggle {
padding: unset !important;
}

@ -23,7 +23,7 @@
{% block scripts %}
{{super()}}
<script src="{{ url_for('.static', filename='select2/js/select2.min.js') }}"></script>
<script src="{{ url_for('.static', filename='adminlte/js/app.min.js') }}"></script>
<script src="{{ url_for('.static', filename='adminlte/js/adminlte.min.js') }}"></script>
{% endblock %}
{% endblock %}
@ -35,9 +35,14 @@ class="hold-transition skin-blue sidebar-mini"
<div class="wrapper">
{% block navbar %}
<header class="main-header">
<a href="{{ config["WEB_ADMIN"] }}" class="logo">
<span class="logo-lg">{{ config["SITENAME"] }}</span>
</a>
<div class="logo">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<a href="{{ config["WEB_ADMIN"] }}">
<span class="logo-lg">{{ config["SITENAME"] }}</span>
</a>
</div>
</header>
<aside class="main-sidebar">
{% block sidebar %}

@ -3,7 +3,7 @@
<h4 class="text-center text-primary">{{ current_user }}</h4>
{% endif %}
<ul class="sidebar-menu">
<ul class="sidebar-menu" data-widget="tree">
{% if current_user.is_authenticated %}
<li class="header">{% trans %}My account{% endtrans %}</li>
<li>

Loading…
Cancel
Save