add notification navbar

This commit is contained in:
Andreas N 2015-01-31 00:47:28 +01:00
parent 393b92e001
commit 030e6ac6a6
3 changed files with 18 additions and 1 deletions

View 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')

View File

@ -1,5 +1,5 @@
.col-md-3.col-xs-12.col-sm-3
.panel.panel-default
.panel.panel-default.hidden-xs
.panel-body
%ul.nav.nav-pills.nav-stacked
= nav_entry "All notifications", notifications_path

View File

@ -1,3 +1,4 @@
= render 'notifications/notification_nav'
.container.j2-page
= render 'notification_tabs'
.col-md-9.col-xs-12.col-sm-9