2022-07-17 20:53:53 +02:00
|
|
|
= render 'navigation/dropdown/profile', size: "mobile"
|
|
|
|
= render 'navigation/dropdown/notifications', notifications: notifications, size: "mobile"
|
2021-08-08 00:23:47 +02:00
|
|
|
- notifications_icon = notification_count.nil? ? 'bell-o' : 'bell'
|
2022-07-03 18:34:44 +02:00
|
|
|
%nav.navbar.navbar-themed.bg-primary.fixed-bottom.d-lg-none.d-block.d-print-none#rs-mobile-nav{ role: :navigation }
|
2022-12-04 23:07:13 +01:00
|
|
|
.container
|
2021-08-07 19:18:01 +02:00
|
|
|
%ul.nav.navbar-nav.navbar-icon-row
|
2022-07-31 22:53:25 +02:00
|
|
|
= nav_entry t("navigation.timeline"), root_path, icon: 'home', icon_only: true
|
|
|
|
= nav_entry t("navigation.inbox"), '/inbox',
|
2021-08-12 21:56:28 +02:00
|
|
|
badge: inbox_count, badge_color: 'primary', badge_pill: true,
|
|
|
|
icon: 'inbox', icon_only: true
|
2021-08-06 00:36:02 +02:00
|
|
|
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod?
|
2022-07-31 22:53:25 +02:00
|
|
|
= nav_entry t("navigation.discover"), discover_path, icon: 'compass', icon_only: true
|
2022-07-17 20:53:53 +02:00
|
|
|
%li.nav-item
|
|
|
|
%a.nav-link{ href: '#', data: { toggle: 'dropdown', target: '#rs-mobile-nav-notifications' }, aria: { controls: 'rs-mobile-nav-notifications', expanded: 'false' } }
|
|
|
|
%i.fa{ class: "fa-#{notifications_icon}" }
|
2022-07-31 22:53:25 +02:00
|
|
|
%span.sr-only= t("navigation.notifications")
|
2022-07-20 16:11:04 +02:00
|
|
|
%span.badge.badge-pill.badge-primary= notification_count
|
2021-08-06 00:36:02 +02:00
|
|
|
%li.nav-item.profile--image-dropdown
|
2021-08-07 19:18:01 +02:00
|
|
|
%a.nav-link{ href: '#', data: { toggle: 'dropdown', target: '#rs-mobile-nav-profile' }, aria: { controls: 'rs-mobile-nav-profile', expanded: 'false' } }
|
|
|
|
%img.avatar-md.d-inline{ src: current_user.profile_picture.url(:small) }
|