mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 22:27:48 +01:00
add notification navbar
This commit is contained in:
parent
393b92e001
commit
030e6ac6a6
3 changed files with 18 additions and 1 deletions
app/views/notifications
16
app/views/notifications/_notification_nav.html.haml
Normal file
16
app/views/notifications/_notification_nav.html.haml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
%nav.navbar.navbar-default.navbar-static-top.j2-navbar.visible-xs{role: "navigation"}
|
||||||
|
.container
|
||||||
|
.navbar-header
|
||||||
|
%button.navbar-toggle{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"}
|
||||||
|
%span.sr-only Toggle navigation
|
||||||
|
%span.icon-bar
|
||||||
|
%span.icon-bar
|
||||||
|
%span.icon-bar
|
||||||
|
%a.navbar-brand{href: "/"} Notifications
|
||||||
|
#j2-tl-navbar-collapse.collapse.navbar-collapse
|
||||||
|
%ul.nav.navbar-nav
|
||||||
|
= nav_entry "All notifications", notifications_path
|
||||||
|
= nav_entry "Answers", notifications_path('answer')
|
||||||
|
= nav_entry "Smiles", notifications_path('smile')
|
||||||
|
= nav_entry "Comments", notifications_path('comment')
|
||||||
|
= nav_entry "Followers", notifications_path('relationship')
|
|
@ -1,5 +1,5 @@
|
||||||
.col-md-3.col-xs-12.col-sm-3
|
.col-md-3.col-xs-12.col-sm-3
|
||||||
.panel.panel-default
|
.panel.panel-default.hidden-xs
|
||||||
.panel-body
|
.panel-body
|
||||||
%ul.nav.nav-pills.nav-stacked
|
%ul.nav.nav-pills.nav-stacked
|
||||||
= nav_entry "All notifications", notifications_path
|
= nav_entry "All notifications", notifications_path
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
= render 'notifications/notification_nav'
|
||||||
.container.j2-page
|
.container.j2-page
|
||||||
= render 'notification_tabs'
|
= render 'notification_tabs'
|
||||||
.col-md-9.col-xs-12.col-sm-9
|
.col-md-9.col-xs-12.col-sm-9
|
||||||
|
|
Loading…
Reference in a new issue