@@ -36,37 +36,39 @@ html data-theme="light"
3636 nav .main-navigation
3737 .nav-container
3838 .nav-brand
39+ - if content_for?(:sidebar )
40+ button .nav-burger type =" button" aria-label =" Toggle sidebar" data-action =" click->sidebar#toggleMobile"
41+ i .fa-solid .fa-bars
3942 = link_to root_path, class : " brand-link" do
4043 img .brand-icon src =" /icon.png" alt =" Hackorum" width =" 24" height =" 24"
4144 span .brand-text Hackorum
45+ details .mobile-nav-dropdown
46+ summary .mobile-nav-toggle aria-label =" Open menu"
47+ span .mobile-nav-label Menu
48+ i .fa-solid .fa-caret-down
49+ .mobile-nav-menu data-action =" click->sidebar#closeMenuOnNavigate"
50+ = link_to " Topics" , topics_path, class : " nav-link"
51+ = link_to " Search" , topics_path(anchor: " search" ), class : " nav-link"
52+ = link_to " Statistics" , stats_path, class : " nav-link"
53+ = link_to " Reports" , reports_path, class : " nav-link"
54+ = link_to " Help" , help_index_path, class : " nav-link"
55+ button .nav-link .theme-toggle type =" button" aria-label =" Toggle theme" data-controller =" theme" data-action =" click->theme#toggle"
56+ i .fas .fa-moon data-theme-target =" icon"
57+ span data-theme-target =" label" Theme
58+ - if user_signed_in?
59+ - if current_user&.person&.default_alias
60+ span .nav-user = current_user.person.default_alias.name
61+ - unread = activity_unread_count
62+ = link_to activities_path, class : " nav-link nav-link-activity" , title: " Activity" do
63+ i .fa-regular .fa-bell
64+ - if unread.positive?
65+ span .nav-badge = unread
66+ = link_to " Settings" , settings_root_path, class : " nav-link"
67+ = button_to " Sign out" , session_path, method: :delete , class : " nav-link" , form: { style: ' display:inline' }, data: { turbo: false }
68+ - else
69+ = link_to " Sign in" , new_session_path, class : " nav-link"
70+ = link_to " Register" , new_registration_path, class : " nav-link"
4271 span .tagline PostgreSQL Hackers Archive
43- - if content_for?(:sidebar )
44- button .nav-burger type =" button" aria-label =" Toggle sidebar" data-action =" click->sidebar#toggleMobile"
45- i .fa-solid .fa-bars
46- details .mobile-nav-dropdown
47- summary .mobile-nav-toggle Menu
48- .mobile-nav-menu data-action =" click->sidebar#closeMenuOnNavigate"
49- = link_to " Topics" , topics_path, class : " nav-link"
50- = link_to " Search" , topics_path(anchor: " search" ), class : " nav-link"
51- = link_to " Statistics" , stats_path, class : " nav-link"
52- = link_to " Reports" , reports_path, class : " nav-link"
53- = link_to " Help" , help_index_path, class : " nav-link"
54- button .nav-link .theme-toggle type =" button" aria-label =" Toggle theme" data-controller =" theme" data-action =" click->theme#toggle"
55- i .fas .fa-moon data-theme-target =" icon"
56- span data-theme-target =" label" Theme
57- - if user_signed_in?
58- - if current_user&.person&.default_alias
59- span .nav-user = current_user.person.default_alias.name
60- - unread = activity_unread_count
61- = link_to activities_path, class : " nav-link nav-link-activity" , title: " Activity" do
62- i .fa-regular .fa-bell
63- - if unread.positive?
64- span .nav-badge = unread
65- = link_to " Settings" , settings_root_path, class : " nav-link"
66- = button_to " Sign out" , session_path, method: :delete , class : " nav-link" , form: { style: ' display:inline' }, data: { turbo: false }
67- - else
68- = link_to " Sign in" , new_session_path, class : " nav-link"
69- = link_to " Register" , new_registration_path, class : " nav-link"
7072 .nav-links
7173 = link_to " Topics" , topics_path, class : " nav-link"
7274 - search_link = content_for?(:search_sidebar ) ? " #search" : topics_path(anchor: " search" )
0 commit comments