Skip to content

Commit

Permalink
Always show module sidebar link (#471)
Browse files Browse the repository at this point in the history
* Always show module sidebar link (do not disable)

* Fix closing list item
  • Loading branch information
Splines authored Apr 23, 2023
1 parent 03b6c00 commit 77ccd62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/shared/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@
<%# Modul %>
<% path = display_course_path(lecture) %>
<% active_class = get_class_for_path(path) %>
<li class="sidebar-item nav-link <%= active_class %>
<%= !lecture.announcements.exists? ? "disabled" : ""%>">
<li class="sidebar-item nav-link <%= active_class %>">
<a href="<%= url_for(path)%>">
<i class="bi bi-hexagon<%= active_class.present? ? "-fill" : "" %>"></i>
<%= t('categories.course') %>
Expand Down

0 comments on commit 77ccd62

Please sign in to comment.