2021-08-07 15:23:47 -07:00
|
|
|
- notifications_icon = notification_count.nil? ? 'bell-o' : 'bell'
|
2023-01-11 12:48:15 -08:00
|
|
|
%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 }
|
2022-12-04 14:07:13 -08:00
|
|
|
.container
|
2021-08-07 10:18:01 -07:00
|
|
|
%ul.nav.navbar-nav.navbar-icon-row
|
2022-07-31 13:53:25 -07:00
|
|
|
= nav_entry t("navigation.timeline"), root_path, icon: 'home', icon_only: true
|
2023-08-16 12:17:18 -07:00
|
|
|
= nav_entry t("navigation.inbox"), '/inbox',
|
|
|
|
badge: inbox_count, badge_color: 'primary', badge_pill: true,
|
|
|
|
icon: 'inbox', icon_only: true, id: "nav-inbox-mobile"
|
2021-08-05 15:36:02 -07:00
|
|
|
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod?
|
2022-07-31 13:53:25 -07:00
|
|
|
= nav_entry t("navigation.discover"), discover_path, icon: 'compass', icon_only: true
|
2023-01-21 00:38:52 -08:00
|
|
|
= nav_entry t("navigation.notifications"), notifications_path("all"), icon: notifications_icon,
|
2023-03-07 10:53:57 -08:00
|
|
|
badge: notification_count, badge_color: "primary", badge_attr: { id: "notification-mobile-count" }, icon_only: true
|
2021-08-05 15:36:02 -07:00
|
|
|
%li.nav-item.profile--image-dropdown
|
2023-01-04 03:23:47 -08:00
|
|
|
%a.nav-link{ href: '#', data: { bs_toggle: 'dropdown', bs_target: '#rs-mobile-nav-profile' }, aria: { controls: 'rs-mobile-nav-profile', expanded: 'false' } }
|
2023-10-20 02:45:53 -07:00
|
|
|
= render AvatarComponent.new(user: current_user, size: "md", classes: ["d-inline"])
|
2023-01-04 13:57:45 -08:00
|
|
|
= render 'navigation/dropdown/profile', size: "mobile"
|