From 7d9cde3cfba53ea52d293c66b49138e2f5c6947a Mon Sep 17 00:00:00 2001 From: dilanua Date: Sun, 24 Jul 2016 12:46:40 +0530 Subject: [PATCH] Refactoring Navigation Bar --- .../app/pages/cdmf.page.users/users.hbs | 4 +-- .../cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs | 36 ++++++++++++++----- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/users.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/users.hbs index d54c3a1d55..560f597bbe 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/users.hbs +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/users.hbs @@ -27,14 +27,14 @@
  • - Users + USERS
  • {{/zone}} {{#zone "navbarActions"}}
  • - + diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs index 2a3054d3af..181056757f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs @@ -16,38 +16,58 @@ under the License. }} {{#zone "navMenu-icon"}} - + + + {{/zone}} -{{~#zone "navMenu-items"}} +{{#zone "navMenu-items"}} {{#if permissions.VIEW_DASHBOARD}}
  • - Admin Dashboard + + + Admin Dashboard +
  • {{/if}} {{#if permissions.LIST_OWN_DEVICES}}
  • - Device Management + + + Device Management +
  • {{/if}} {{#if permissions.LIST_GROUPS}}
  • - Group Management + + + Group Management +
  • {{/if}} {{#if permissions.ADD_USER}}
  • - User Management + + + User Management +
  • {{/if}} {{#if permissions.ADD_ROLE}}
  • - Role Management + + + Role Management +
  • {{/if}} {{#if permissions.ADD_POLICY}}
  • - Policy Management + + + Policy Management +
  • {{/if}} {{#if permissions.TENANT_CONFIGURATION}}