Commit a126d71 1 parent 3a10c02 commit a126d71 Copy full SHA for a126d71
File tree 1 file changed +32
-30
lines changed
src/unfold/templates/unfold/helpers
1 file changed +32
-30
lines changed Original file line number Diff line number Diff line change 3
3
{% if sidebar_navigation %}
4
4
< div class ="overflow-auto ">
5
5
{% for group in sidebar_navigation %}
6
- {% if group.separator %}
7
- < hr class ="border-t border-gray-200 mx-6 my-2 dark:border-gray-800 " />
8
- {% endif %}
9
-
10
- {% if group.title %}
11
- < h3 class ="font-medium my-3 px-6 text-gray-900 text-sm first:mt-0 dark:text-gray-200 ">
12
- {{ group.title }}
13
- </ h3 >
14
- {% endif %}
6
+ {% if group.items %}
7
+ {% if group.separator %}
8
+ < hr class ="border-t border-gray-200 mx-6 my-2 dark:border-gray-800 " />
9
+ {% endif %}
15
10
16
- < ol class ="px-6 ">
17
- {% for item in group.items %}
18
- < li >
19
- < a href ="{{ item.link }} "
20
- class ="border border-transparent flex h-11 items-center -mx-3 px-3 py-2 rounded-md {% if item.active %}bg-gray-100 font-semibold text-primary-600 dark:border dark:border-gray-800 dark:bg-white/[.02] dark:text-primary-500{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 hover:dark:text-gray-200{% endif %} ">
21
- {% if item.icon %}
22
- < span class ="material-symbols-outlined md-18 mr-3 w-4.5 ">
23
- {{ item.icon }}
24
- </ span >
25
- {% endif %}
11
+ {% if group.title %}
12
+ < h3 class ="font-medium my-3 px-6 text-gray-900 text-sm first:mt-0 dark:text-gray-200 ">
13
+ {{ group.title }}
14
+ </ h3 >
15
+ {% endif %}
26
16
27
- < span class ="text-sm ">
28
- {{ item.title|safe }}
29
- </ span >
17
+ < ol class ="px-6 ">
18
+ {% for item in group.items %}
19
+ < li >
20
+ < a href ="{{ item.link }} "
21
+ class ="border border-transparent flex h-11 items-center -mx-3 px-3 py-2 rounded-md {% if item.active %}bg-gray-100 font-semibold text-primary-600 dark:border dark:border-gray-800 dark:bg-white/[.02] dark:text-primary-500{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 hover:dark:text-gray-200{% endif %} ">
22
+ {% if item.icon %}
23
+ < span class ="material-symbols-outlined md-18 mr-3 w-4.5 ">
24
+ {{ item.icon }}
25
+ </ span >
26
+ {% endif %}
30
27
31
- {% if item.badge %}
32
- < span class ="bg-red-600 font-semibold ml-2 px-1 rounded-sm text-xs text-white ">
33
- {{ item.badge|safe }}
28
+ < span class ="text-sm ">
29
+ {{ item.title|safe }}
34
30
</ span >
35
- {% endif %}
36
- </ a >
37
- </ li >
38
- {% endfor %}
39
- </ ol >
31
+
32
+ {% if item.badge %}
33
+ < span class ="bg-red-600 font-semibold ml-2 px-1 rounded-sm text-xs text-white ">
34
+ {{ item.badge|safe }}
35
+ </ span >
36
+ {% endif %}
37
+ </ a >
38
+ </ li >
39
+ {% endfor %}
40
+ </ ol >
41
+ {% endif %}
40
42
{% endfor %}
41
43
</ div >
42
44
You can’t perform that action at this time.
0 commit comments