From 3994917ce9dcee42c60a0498084fb5871580a38e Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 19 Apr 2020 23:42:37 +0200 Subject: [PATCH] Adjust notification navigation to Bootstrap 4 --- app/views/notifications/_notification_nav.html.haml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/views/notifications/_notification_nav.html.haml b/app/views/notifications/_notification_nav.html.haml index 59a54d56..cc71f8cb 100644 --- a/app/views/notifications/_notification_nav.html.haml +++ b/app/views/notifications/_notification_nav.html.haml @@ -1,12 +1,9 @@ -%nav.navbar.navbar-default.navbar-static-top.j2-navbar.visible-xs{role: "navigation"} +%nav.navbar.navbar-default.navbar-static-top.j2-navbar.d-block.d-sm-none{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_path} Notifications + %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