|
|
@@ -79,17 +79,17 @@
|
|
|
<span class="sidebar-text text-sm font-medium">首页</span>
|
|
|
</a>
|
|
|
|
|
|
- <!-- 科目管理 + 子菜单 -->
|
|
|
+ <!-- 全部科目 -->
|
|
|
<div class="mb-1">
|
|
|
- <a href="javascript:void(0)" id="subjectToggleBtn" class="sidebar-link flex items-center gap-3 px-3 py-2.5 rounded-xl text-gray-500 hover:bg-gray-50 transition {% if '/subjects' in request.url.path or '/subject/' in request.url.path %}active{% endif %}">
|
|
|
- <i class="fa-solid fa-folder w-5 text-center text-base flex-shrink-0"></i>
|
|
|
- <span class="sidebar-text text-sm font-medium">科目管理</span>
|
|
|
+ <a href="javascript:void(0)" id="subjectToggleBtn" class="sidebar-link flex items-center gap-3 px-3 py-2.5 rounded-xl text-gray-500 hover:bg-gray-50 transition">
|
|
|
+ <i class="fa-solid fa-list-check w-5 text-center text-base flex-shrink-0"></i>
|
|
|
+ <span class="sidebar-text text-sm font-medium">全部科目</span>
|
|
|
<i class="fa-solid fa-chevron-right text-[10px] text-gray-400 ml-auto subject-toggle" id="subjectToggleIcon"></i>
|
|
|
</a>
|
|
|
<div id="subjectSubmenu" class="sidebar-sub collapsed mt-1 ml-4 pl-3 border-l border-gray-100">
|
|
|
- <div class="sidebar-section-label sidebar-text px-1">全部科目</div>
|
|
|
+ <div class="sidebar-section-label sidebar-text px-1">科目列表</div>
|
|
|
{% for s in subjects %}
|
|
|
- <a href="/subject/{{ s.id }}" class="subject-item {% if request.url.path == '/subject/' ~ s.id|string %}active{% endif %}" style="{% if '/subject/' ~ s.id|string ~ '?' in request.url.path %}margin-top:0{% endif %}">
|
|
|
+ <a href="/subject/{{ s.id }}" class="subject-item {% if request.url.path == '/subject/' ~ s.id|string %}active{% endif %}">
|
|
|
<span class="w-2.5 h-2.5 rounded-full flex-shrink-0" style="background-color:{{ s.color }};"></span>
|
|
|
<span class="sidebar-text truncate">{{ s.name }}</span>
|
|
|
<span class="sidebar-text ml-auto text-[10px] text-gray-300">{{ s.error_images|length }}</span>
|
|
|
@@ -101,6 +101,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <!-- 科目管理 -->
|
|
|
+ <a href="/subjects" class="sidebar-link flex items-center gap-3 px-3 py-2.5 rounded-xl text-gray-500 hover:bg-gray-50 transition mb-1 {% if '/subjects' in request.url.path %}active{% endif %}">
|
|
|
+ <i class="fa-solid fa-folder w-5 text-center text-base flex-shrink-0"></i>
|
|
|
+ <span class="sidebar-text text-sm font-medium">科目管��</span>
|
|
|
+ </a>
|
|
|
+
|
|
|
<!-- 时间线 -->
|
|
|
<a href="/timeline" class="sidebar-link flex items-center gap-3 px-3 py-2.5 rounded-xl text-gray-500 hover:bg-gray-50 transition mb-1 {% if '/timeline' in request.url.path %}active{% endif %}">
|
|
|
<i class="fa-solid fa-clock-rotate-left w-5 text-center text-base flex-shrink-0"></i>
|