1+
2+ < div id ="bottom-nav " class ="bg-light shadow-sm vw-100 fixed-bottom collapse show "> <!-- Hidden Notifications -->
3+ < nav class ="collapse <%= 'show w-100 position-static' if current_page? ( notifications_path ) %> " id ="navbarNotifications ">
4+ < div class ="container my-3 ">
5+ <%= render recent_notifications %>
6+ </ div >
7+ </ nav >
8+
9+ <!-- Identity nav -->
10+ < nav id ="identity-nav " class ="navbar navbar-expand-sm " aria-labelledby ="userNavbarDropdownMenuLink ">
11+ < div class ="container ">
12+ <% content_for :identity_brand do %>
13+ <%= link_to person_my_profile_path ( person_id : current_person . slug ) , class : "navbar-brand my-profile d-flex align-items-center" , data : { identifier : 'my-profile' } do %>
14+ <%= profile_image_tag ( current_identity , class : 'identity-nav' ) %>
15+ < span class ="identity-name ms-2 "> <%= current_identity . name %> </ span >
16+ <% end %>
17+ <% end %>
18+
19+ <% content_for :identity_nav_toggle do %>
20+ <!-- Toggler for mobile view -->
21+ < button class ="navbar-toggler " type ="button " data-bs-toggle ="collapse " data-bs-target ="#identity-navbar " aria-controls ="identity-navbar " aria-expanded ="false " aria-label ="<%= t ( 'navbar.toggle_navigation' ) %> ">
22+ < span class ="navbar-toggler-icon "> </ span >
23+ </ button >
24+ <% end %>
25+ < div class ="d-none ">
26+ <%= yield :identity_brand %>
27+ <%= yield :identity_nav_toggle %>
28+ </ div >
29+ < div id ="identity-navbar " class ="collapse navbar-collapse ">
30+ < ul class ="navbar-nav ms-auto text-center w-100 align-items-center justify-content-between " aria-labelledby ="userNavbarDropdownMenuLink ">
31+ < li class ="nav-item ">
32+ <%= link_to t ( 'navbar.log_out' ) , destroy_user_session_path , data : { turbo_method : :delete , identifier : 'sign-out' } , class : "nav-link text-danger" %>
33+ </ li >
34+
35+ <%= cache [ 'locale_switcher' , request . fullpath , I18n . locale ] do %>
36+ <%= render 'layouts/better_together/locale_switcher' %>
37+ <% end %>
38+
39+ <% if permitted_to? ( 'manage_platform' ) %>
40+ < li id ="host-nav-item ">
41+ <%= render_platform_host_nav_items %>
42+ </ li >
43+ <% end %>
44+
45+ < li class ="nav-item ">
46+ <%= link_to conversations_path , id : "conversations-icon" , class : "nav-link position-relative#{ ' active' if url_for ( controller : params [ :controller ] , action : params [ :action ] ) === conversations_path } " , data : { 'identifier' => 'conversations' , 'bs-toggle' => 'collapse' , 'bs-target' => '#navbarConversations' } , aria : { expanded : false , controls : 'navbarConversations' } do %>
47+ < i class ="fa fa-comments "> </ i > <%= t ( 'navbar.conversations' ) %>
48+ <%= unread_notification_count %>
49+ <% end %>
50+ </ li >
51+
52+ < li class ="nav-item notifications dropdown " data-bs-toggle ="tooltip " data-bs-placement ="bottom " title ="<%= t ( 'navbar.notifications_tooltip' ) %> ">
53+ < a id ="notification-icon " class ="nav-link position-relative <%= ' active' if url_for ( controller : params [ :controller ] , action : params [ :action ] ) === notifications_path %> " href ="<%= notifications_path %> " role ="button " href ="#notifications " data-bs-toggle ="collapse " data-bs-target ="#navbarNotifications " aria-expanded ="false " aria-controls ="navbarNotifications ">
54+ < i class ="fa fa-bell "> </ i > <%= t ( 'navbar.notifications_tooltip' ) %>
55+ <%= unread_notification_count %>
56+ </ a >
57+ </ li >
58+
59+ <%= yield :editor_status if content_for? :editor_status %>
60+ </ ul >
61+ </ div >
62+ < div class ="d-flex w-100 d-none-sm justify-content-between align-items-center ">
63+ <%= yield :identity_brand %>
64+ </ div >
65+ </ div >
66+ </ nav >
67+ </ div >
0 commit comments