|
26 | 26 | </li> |
27 | 27 | <li> |
28 | 28 | <a href="/" |
29 | | - class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 "> |
| 29 | + class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 {% if 'dashboard' in segment %} bg-gray-100 dark:bg-gray-700 {% endif %}"> |
30 | 30 | <svg class="w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" |
31 | 31 | fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
32 | 32 | <path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path> |
|
52 | 52 | {% else %} |
53 | 53 | <li> |
54 | 54 | <a href="{% url 'profile' %}" |
55 | | - class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 "> |
| 55 | + class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 {% if 'profile' in segment %} bg-gray-100 dark:bg-gray-700 {% endif %}"> |
56 | 56 | <svg class="w-6 h-6 text-gray-500 dark:text-white" aria-hidden="true" |
57 | 57 | xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"> |
58 | 58 | <path |
|
66 | 66 | {% endif %} |
67 | 67 | <li> |
68 | 68 | <button type="button" |
69 | | - class="flex items-center w-full p-2 text-base text-gray-900 transition duration-75 rounded-lg group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700" |
| 69 | + class="flex items-center w-full p-2 text-base text-gray-900 transition duration-75 rounded-lg group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 {% if 'apps' in parent %} bg-gray-100 dark:bg-gray-700 {% endif %}" |
70 | 70 | aria-controls="dropdown-dashboard" data-collapse-toggle="dropdown-dashboard"> |
71 | 71 | <svg class="w-6 h-6 text-gray-500 dark:text-white" aria-hidden="true" |
72 | 72 | xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"> |
|
82 | 82 | clip-rule="evenodd"></path> |
83 | 83 | </svg> |
84 | 84 | </button> |
85 | | - <ul id="dropdown-dashboard" class="hidden py-2 space-y-2"> |
| 85 | + <ul id="dropdown-dashboard" class="py-2 space-y-2 {% if 'apps' in parent %}block {% else %} hidden {% endif %}"> |
86 | 86 | <li> |
87 | 87 | <a href="{% url 'tasks' %}" |
88 | | - class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Tasks</a> |
| 88 | + class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 {% if 'tasks' in segment %} bg-gray-100 dark:bg-gray-700 {% endif %}">Tasks</a> |
89 | 89 | </li> |
90 | 90 | <li> |
91 | 91 | <a href="{% url 'charts' %}" |
92 | | - class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Charts</a> |
| 92 | + class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 {% if 'charts' in segment %} bg-gray-100 dark:bg-gray-700 {% endif %}">Charts</a> |
93 | 93 | </li> |
94 | 94 | <li> |
95 | 95 | <a href="{% url 'datatables' %}" |
96 | | - class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Datatables</a> |
| 96 | + class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 {% if 'datatables' in segment %} bg-gray-100 dark:bg-gray-700 {% endif %}">Datatables</a> |
97 | 97 | </li> |
98 | 98 | <li> |
99 | 99 | <a href="/api/product/" |
|
0 commit comments