17 lines
1.3 KiB
Plaintext
17 lines
1.3 KiB
Plaintext
- notifications_icon = notification_count.nil? ? 'bell-o' : 'bell'
|
|
%nav.navbar.navbar-themed.bg-primary.fixed-bottom.d-lg-none.d-block.d-print-none#rs-mobile-nav{ class: Rails.env.development? ? "navbar-dev" : "", role: :navigation }
|
|
.container
|
|
%ul.nav.navbar-nav.navbar-icon-row
|
|
= nav_entry t("navigation.timeline"), root_path, icon: 'home', icon_only: true
|
|
= nav_entry t("navigation.inbox"), '/inbox',
|
|
badge: inbox_count, badge_color: 'primary', badge_pill: true,
|
|
icon: 'inbox', icon_only: true, id: "nav-inbox-mobile"
|
|
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod?
|
|
= nav_entry t("navigation.discover"), discover_path, icon: 'compass', icon_only: true
|
|
= nav_entry t("navigation.notifications"), notifications_path("all"), icon: notifications_icon,
|
|
badge: notification_count, badge_color: "primary", badge_attr: { id: "notification-mobile-count" }, icon_only: true
|
|
%li.nav-item.profile--image-dropdown
|
|
%a.nav-link{ href: '#', data: { bs_toggle: 'dropdown', bs_target: '#rs-mobile-nav-profile' }, aria: { controls: 'rs-mobile-nav-profile', expanded: 'false' } }
|
|
= render AvatarComponent.new(user: current_user, size: "md", classes: ["d-inline"])
|
|
= render 'navigation/dropdown/profile', size: "mobile"
|