From 030e6ac6a67b33ab6fb84d3782ce595d85ab56da Mon Sep 17 00:00:00 2001 From: Andreas N Date: Sat, 31 Jan 2015 00:47:28 +0100 Subject: [PATCH] add notification navbar --- .../notifications/_notification_nav.html.haml | 16 ++++++++++++++++ .../notifications/_notification_tabs.html.haml | 2 +- app/views/notifications/index.html.haml | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 app/views/notifications/_notification_nav.html.haml diff --git a/app/views/notifications/_notification_nav.html.haml b/app/views/notifications/_notification_nav.html.haml new file mode 100644 index 00000000..a2513801 --- /dev/null +++ b/app/views/notifications/_notification_nav.html.haml @@ -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') \ No newline at end of file diff --git a/app/views/notifications/_notification_tabs.html.haml b/app/views/notifications/_notification_tabs.html.haml index 4bb01b43..16f73e5d 100644 --- a/app/views/notifications/_notification_tabs.html.haml +++ b/app/views/notifications/_notification_tabs.html.haml @@ -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 diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index f394a2bd..4b12b4b4 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -1,3 +1,4 @@ += render 'notifications/notification_nav' .container.j2-page = render 'notification_tabs' .col-md-9.col-xs-12.col-sm-9