add sidebar toggle button

master
hoellen 6 years ago
parent 92ef73fa74
commit 167e5a87e1

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

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

Loading…
Cancel
Save