@@ -94,59 +94,7 @@ <h2 class="h5 mb-3">Hi, Jane</h2>
9494 < span class ="sidebar-text "> Charts</ span >
9595 </ a >
9696 </ li >
97-
98- {% admin_get_menu as app_list %}
99- {% if app_list %}
100- {% for app in app_list %}
101- {% if app.has_perms and not app.pinned %}
102- < li class ="nav-item ">
103- < span class ="nav-link collapsed d-flex justify-content-between align-items-center " data-bs-toggle ="collapse " data-bs-target ="#submenu-dashboard{{app.app_label}} ">
104- < span >
105- < span class ="sidebar-icon ">
106- < svg class ="icon icon-xs me-2 " fill ="currentColor " viewBox ="0 0 20 20 "
107- xmlns ="http://www.w3.org/2000/svg ">
108- < path fill-rule ="evenodd "
109- d ="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z "
110- clip-rule ="evenodd "> </ path >
111- </ svg >
112- </ span >
113- < span class ="sidebar-text "> {{ app.label|slice:10 }}{% if app.label|length > 10 %}..{% endif %}</ span >
114- </ span >
115- < span class ="link-arrow ">
116- < svg class ="icon icon-sm " fill ="currentColor " viewBox ="0 0 20 20 " xmlns ="http://www.w3.org/2000/svg ">
117- < path fill-rule ="evenodd "
118- d ="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z "
119- clip-rule ="evenodd "> </ path >
120- </ svg >
121- </ span >
122- </ span >
123- {% if app.models %}
124- < div
125- class ="multi-level collapse {% if 'tables-bootstrap-' in segment or app_label == app.label or app.url in request.path|urlencode %} show {% endif %} "
126- role ="list "
127- id ="submenu-dashboard{{app.app_label}} "
128- aria-expanded ="{% if app_label == app.label or app.url in request.path|urlencode %}true{% else %}false{% endif %} ">
129- < ul class ="flex-column nav ">
130- {% for model in app.models %}
131- {% if model.url %}
132- < li class ="nav-item {% if 'bootstrap-tables' in segment or model.url in request.path|urlencode %} active {% endif %} ">
133- < a class ="nav-link " href ="{{ model.url }} ">
134- < span class ="sidebar-text-contracted "> A </ span >
135- < span class ="sidebar-text "> {{ model.label }}</ span >
136- </ a >
137- </ li >
138- {% else %}
139- < li class ="nav-item "> {{ model.label }}</ li >
140- {% endif %}
141- {% endfor %}
142- </ ul >
143- </ div >
144- {% endif %}
145- </ li >
146- {% endif %}
147- {% endfor %}
148- {% endif %}
149-
97+
15098 {% if not request.user.is_authenticated %}
15199 < li class ="nav-item ">
152100 < span class ="nav-link collapsed d-flex justify-content-between align-items-center " data-bs-toggle ="collapse "
0 commit comments