Skip to content

Commit

Permalink
Fix active section in sidenav.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlon committed Sep 27, 2024
1 parent eeb50e0 commit d3edf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course_grader_vue/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<BLink
v-if="index != 0"
class="ps-4 nav-link rounded-3 text-body fw-lighter bg-secondary-hover bg-opacity-10-hover"
:class="$route.path.includes(term.url) ? 'bg-secondary bg-opacity-10' : ''"
:class="$route.path.includes('/term/' + term.id) || $route.path.includes('/section/' + term.id) ? 'bg-secondary bg-opacity-10' : ''"
style="--bs-text-opacity: 0.6"
:href="term.url"
>{{ term.quarter}} {{ term.year }}</BLink
Expand Down

0 comments on commit d3edf7c

Please sign in to comment.