@@ -43,7 +43,7 @@ html data-theme="light"
4343 span Please set a username in Settings.
4444 - starred_active = controller_name == " topics" && action_name == " index" && params[:filter ].to_s == " starred_by_me"
4545 nav .main-navigation
46- .nav-container data-controller = " nav-overflow " data-nav-overflow-target = " container "
46+ .nav-container
4747 .nav-brand
4848 - if content_for?(:sidebar )
4949 button .nav-burger type =" button" aria-label =" Toggle sidebar" data-action =" click->sidebar#toggleMobile"
@@ -68,9 +68,6 @@ html data-theme="light"
6868 = link_to " Statistics" , stats_path, class : " nav-link"
6969 = link_to " Reports" , reports_path, class : " nav-link"
7070 = link_to " Help" , help_index_path, class : " nav-link"
71- button .nav-link .theme-toggle type =" button" aria-label =" Toggle theme" data-controller =" theme" data-action =" click->theme#toggle"
72- i .fas .fa-moon data-theme-target =" icon"
73- span data-theme-target =" label" Theme
7471 - if user_signed_in?
7572 - if current_user&.person&.default_alias
7673 = link_to current_user.person.default_alias.name, person_path(current_user.person.default_alias.email), class : " nav-link nav-user"
@@ -93,38 +90,39 @@ html data-theme="light"
9390 i .fa-regular .fa-bell
9491 - if unread.positive?
9592 span .nav-badge = unread
96- .nav-menu data-nav-overflow-target = " menu "
93+ .nav-menu
9794 .nav-links
98- = link_to " Topics" , topics_path, class : " nav-link" , data: { " nav-overflow-target " : " item " }
95+ = link_to " Topics" , topics_path, class : " nav-link"
9996 - search_link = content_for?(:search_sidebar ) ? " #search" : topics_path(anchor: " search" )
100- = link_to " Search" , search_link, class : " nav-link" , data: { " nav-overflow-target" : " item" }
101- = link_to " Statistics" , stats_path, class : " nav-link" , data: { " nav-overflow-target" : " item" }
102- = link_to " Reports" , reports_path, class : " nav-link" , data: { " nav-overflow-target" : " item" }
103- = link_to " Help" , help_index_path, class : " nav-link" , data: { " nav-overflow-target" : " item" }
97+ = link_to " Search" , search_link, class : " nav-link"
98+ = link_to " Reports" , reports_path, class : " nav-link"
10499 .nav-right
105- button .nav-link .theme-toggle type =" button" aria-label =" Toggle theme" data-controller =" theme" data-action =" click->theme#toggle" data-nav-overflow-target =" item"
106- i .fas .fa-moon data-theme-target =" icon"
107- span data-theme-target =" label" Theme
108100 .nav-auth
109101 - if user_signed_in?
110102 - if current_user&.person&.default_alias
111- = link_to current_user.person.default_alias.name, person_path(current_user.person.default_alias.email), class : " nav-link nav-user" , data: { " nav-overflow-target " : " item " }
103+ = link_to current_user.person.default_alias.name, person_path(current_user.person.default_alias.email), class : " nav-link nav-user"
112104 - unread = activity_unread_count
113- = link_to activities_path, class : " nav-link nav-link-activity" , title: " Activity" , data: { " nav-overflow-target " : " item " } do
105+ = link_to activities_path, class : " nav-link nav-link-activity" , title: " Activity" do
114106 i .fa-regular .fa-bell
115107 - if unread.positive?
116108 span .nav-badge = unread
117- = link_to " Settings" , settings_root_path, class : " nav-link" , data: { " nav-overflow-target" : " item" }
118- - if current_admin?
119- = link_to " Admin" , admin_root_path, class : " nav-link" , data: { " nav-overflow-target" : " item" }
120- = button_to " Sign out" , session_path, method: :delete , class : " nav-link" , form: { style: ' display:inline' , data: { " nav-overflow-target" : " item" } }, data: { turbo: false }
121109 - else
122- = link_to " Sign in" , new_session_path, class : " nav-link" , data: { " nav-overflow-target " : " item " }
123- = link_to " Register" , new_registration_path, class : " nav-link" , data: { " nav-overflow-target " : " item " }
124- details .nav-overflow-dropdown data-nav-overflow-target = " overflow "
125- summary .nav-link .nav-overflow-toggle aria-label =" More " data-action =" click->sidebar#closeMenuOnNavigate"
110+ = link_to " Sign in" , new_session_path, class : " nav-link"
111+ = link_to " Register" , new_registration_path, class : " nav-link"
112+ details .nav-overflow-dropdown data-controller = " nav-dropdown "
113+ summary .nav-link .nav-overflow-toggle aria-label =" Menu " data-action =" click->sidebar#closeMenuOnNavigate"
126114 i .fa-solid .fa-bars
127- .nav-overflow-menu data-nav-overflow-target =" overflowMenu"
115+ .nav-overflow-menu
116+ = link_to " Statistics" , stats_path, class : " nav-link"
117+ = link_to " Help" , help_index_path, class : " nav-link"
118+ - if user_signed_in?
119+ = link_to " Settings" , settings_root_path, class : " nav-link"
120+ - if current_admin?
121+ = link_to " Admin" , admin_root_path, class : " nav-link"
122+ = button_to " Sign out" , session_path, method: :delete , class : " nav-link" , form: { style: ' display:inline' }, data: { turbo: false }
123+ - else
124+ = link_to " Sign in" , new_session_path, class : " nav-link"
125+ = link_to " Register" , new_registration_path, class : " nav-link"
128126
129127 - if content_for?(:sidebar )
130128 .page-layout .with-sidebar data-sidebar-target =" layout"
0 commit comments