mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
Move notification navigation to new location
This commit is contained in:
parent
aeedee8b2f
commit
18d4fad00e
4 changed files with 17 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
= render 'notifications/notification_nav'
|
||||
= render 'navigation/notification'
|
||||
.container.j2-page
|
||||
.row
|
||||
.col-md-3.col-xs-12.col-sm-4
|
||||
|
|
14
app/views/navigation/_notification.haml
Normal file
14
app/views/navigation/_notification.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
%nav.navbar.navbar-light.bg-white.navbar-static-top.j2-navbar.d-flex.d-sm-none{role: "navigation"}
|
||||
%a.navbar-brand{href: notifications_path} Notifications
|
||||
%button.navbar-toggler{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"}
|
||||
%span.sr-only Toggle navigation
|
||||
%span.navbar-toggler-icon
|
||||
#j2-tl-navbar-collapse.collapse.navbar-collapse
|
||||
%ul.nav.navbar-nav
|
||||
= nav_entry "New Notifications", notifications_path
|
||||
= nav_entry "All Notifications", notifications_path('all')
|
||||
= nav_entry t('views.notifications.tabs.answer'), notifications_path('answer')
|
||||
= nav_entry t('views.notifications.tabs.smile'), notifications_path('smile')
|
||||
= nav_entry t('views.notifications.tabs.comment'), notifications_path('comment')
|
||||
= nav_entry t('views.notifications.tabs.commentsmile'), notifications_path('commentsmile')
|
||||
= nav_entry t('views.notifications.tabs.relationship'), notifications_path('relationship')
|
|
@ -1,15 +0,0 @@
|
|||
%nav.navbar.navbar-default.navbar-static-top.j2-navbar.d-block.d-sm-none{role: "navigation"}
|
||||
.container
|
||||
%a.navbar-brand{href: notifications_path} Notifications
|
||||
%button.navbar-toggler{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"}
|
||||
%span.sr-only Toggle navigation
|
||||
%span.navbar-toggler-icon
|
||||
#j2-tl-navbar-collapse.collapse.navbar-collapse
|
||||
%ul.nav.navbar-nav
|
||||
= nav_entry "New Notifications", notifications_path
|
||||
= nav_entry "All Notifications", notifications_path('all')
|
||||
= nav_entry t('views.notifications.tabs.answer'), notifications_path('answer')
|
||||
= nav_entry t('views.notifications.tabs.smile'), notifications_path('smile')
|
||||
= nav_entry t('views.notifications.tabs.comment'), notifications_path('comment')
|
||||
= nav_entry t('views.notifications.tabs.commentsmile'), notifications_path('commentsmile')
|
||||
= nav_entry t('views.notifications.tabs.relationship'), notifications_path('relationship')
|
|
@ -1,9 +1,9 @@
|
|||
.card.hidden-xs
|
||||
.card.d-none.d-sm-block
|
||||
.list-group
|
||||
= list_group_item "New Notifications", notifications_path, badge: Notification.for(current_user).where(new: true).count
|
||||
= list_group_item "All Notifications", notifications_path('all')
|
||||
|
||||
.card.hidden-xs
|
||||
.card.d-none.d-sm-block
|
||||
.card-header
|
||||
Filter by Type
|
||||
.list-group
|
||||
|
|
Loading…
Reference in a new issue