File 0008-UI-Hide-ACL-in-mainnav-if-offline-bsc-1009869.patch of Package hawk2.3651
From e64338f1e3a5fecb7a4c330e60e6059ae635c61e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Fri, 11 Nov 2016 15:46:53 -0500
Subject: [PATCH 08/10] UI: Hide ACL in mainnav if offline (bsc#1009869)
---
hawk/app/views/shared/_mainnav.html.haml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/hawk/app/views/shared/_mainnav.html.haml b/hawk/app/views/shared/_mainnav.html.haml
index b7046fb..4550a88 100644
--- a/hawk/app/views/shared/_mainnav.html.haml
+++ b/hawk/app/views/shared/_mainnav.html.haml
@@ -34,13 +34,13 @@
%li{ class: active_menu_with(:commands) }
= link_to _("Command Log"), cib_commands_path(cib_id: current_cib.id)
- - if Util.has_feature? :acl_support
- %li
- = _("Access Control")
+ - if Util.has_feature? :acl_support
+ %li
+ = _("Access Control")
- %ul
- %li{ class: active_menu_with(:roles) }
- = link_to _("Roles"), cib_roles_path(cib_id: current_cib.id)
+ %ul
+ %li{ class: active_menu_with(:roles) }
+ = link_to _("Roles"), cib_roles_path(cib_id: current_cib.id)
- %li{ class: active_menu_with(:users) }
- = link_to _("Targets"), cib_users_path(cib_id: current_cib.id)
+ %li{ class: active_menu_with(:users) }
+ = link_to _("Targets"), cib_users_path(cib_id: current_cib.id)
--
2.10.1