diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-12-14 16:39:20 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:17 +0200 |
commit | 693dc560620d52dc24a0ab89e20147b10ed4f469 (patch) | |
tree | a748bc7a89f76d8ea4cdf1dc1a91895192a7ea56 /install/ui/src/freeipa/navigation/menu_spec.js | |
parent | a4d9e19c79b60b8f7269141374b2e3b6c0d66c45 (diff) | |
download | freeipa-693dc560620d52dc24a0ab89e20147b10ed4f469.tar.gz freeipa-693dc560620d52dc24a0ab89e20147b10ed4f469.tar.xz freeipa-693dc560620d52dc24a0ab89e20147b10ed4f469.zip |
Menu and application controller refactoring
https://fedorahosted.org/freeipa/ticket/3235
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/navigation/menu_spec.js')
-rw-r--r-- | install/ui/src/freeipa/navigation/menu_spec.js | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/navigation/menu_spec.js b/install/ui/src/freeipa/navigation/menu_spec.js new file mode 100644 index 000000000..06e49597f --- /dev/null +++ b/install/ui/src/freeipa/navigation/menu_spec.js @@ -0,0 +1,107 @@ +/* Authors: + * Petr Vobornik <pvoborni@redhat.com> + * + * Copyright (C) 2012 Red Hat + * see file 'COPYING' for use and warranty information + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +define([], function() { + +var nav = {}; + nav.admin = { + name: 'admin', + items: [ + { + name: 'identity', + label: '@i18n:tabs.identity', + children: [ + { entity: 'user' }, + { entity: 'group' }, + { entity: 'host' }, + { entity: 'hostgroup' }, + { entity: 'netgroup' }, + { entity: 'service' }, + { + name:'dns', + label: '@i18n:tabs.dns', + children: [ + { entity: 'dnszone' }, + { entity: 'dnsconfig' }, + { entity: 'dnsrecord', hidden:true } + ] + } + ] + }, + {name: 'policy', label: '@i18n:tabs.policy', children: [ + {name: 'hbac', label: '@i18n:tabs.hbac', children: [ + {entity: 'hbacrule'}, + {entity: 'hbacsvc'}, + {entity: 'hbacsvcgroup'}, + {entity: 'hbactest'} + ]}, + {name: 'sudo', label: '@i18n:tabs.sudo', children: [ + {entity: 'sudorule'}, + {entity: 'sudocmd'}, + {entity: 'sudocmdgroup'} + ]}, + { + name:'automount', + label: '@i18n:tabs.automount', + entity: 'automountlocation', + children:[ + {entity: 'automountlocation', hidden:true}, + {entity: 'automountmap', hidden: true}, + {entity: 'automountkey', hidden: true}] + }, + {entity: 'pwpolicy'}, + {entity: 'krbtpolicy'}, + {entity: 'selinuxusermap'}, + {name: 'automember', label: '@i18n:tabs.automember', + children: [ + { name: 'amgroup', entity: 'automember', + facet: 'searchgroup', label: '@i18n:objects.automember.usergrouprules'}, + { name: 'amhostgroup', entity: 'automember', + facet: 'searchhostgroup', label: '@i18n:objects.automember.hostgrouprules'} + ]} + ]}, + {name: 'ipaserver', label: '@i18n:tabs.ipaserver', children: [ + {name: 'rolebased', label: '@i18n:tabs.role', children: [ + {entity: 'role'}, + {entity: 'privilege'}, + {entity: 'permission'} + ]}, + {entity: 'selfservice'}, + {entity: 'delegation'}, + {entity: 'idrange'}, + {entity: 'trust'}, + {entity: 'config'} + ]} + ] +}; + +nav.self_service = { + name: 'self-service', + items: [ + { + name: 'identity', + label: '@i18n:tabs.identity', + children: [{entity: 'user'}] + } + ] +}; + +return nav; +});
\ No newline at end of file |