## Licensed to Cloudera, Inc. under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. Cloudera, Inc. licenses this file ## to you under the Apache License, Version 2.0 (the ## "License"); you may not use this file except in compliance ## with the License. You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ## distributed under the License is distributed on an "AS IS" BASIS, ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## See the License for the specific language governing permissions and ## limitations under the License. <%! from desktop.views import commonheader, commonfooter from django.utils.translation import ugettext as _ %> <%namespace name="layout" file="layout.mako" /> <%namespace name="tree" file="common_tree.mako" /> ${ commonheader(_('Hadoop Security'), "security", user) | n,unicode } ${ layout.menubar(section='hdfs') }

${ _('HDFS ACLs') }

${ tree.render(id='expandableTree', data='$root.assist.treeData', afterRender='$root.assist.afterRender') }
# file:
# owner:
# group:

${ _('Path') }

${ _('User/Group') }

 

${ _('ACLs') }

   

${ _('Default ACLs') }

   
<%def name="treeIcons()"> 'fa-folder-open-o': isDir() && nodes().length > 0 && !aclBit(), 'fa-folder-open': isDir() && nodes().length > 0 && aclBit(), 'fa-folder-o': isDir() && nodes().length == 0 && !aclBit(), 'fa-folder': isDir() && nodes().length == 0 && aclBit(), 'fa-file-o': !isDir() && !aclBit(), 'fa-file': !isDir() && aclBit(), 'striked': striked() <%def name="aclBitPullRight()">
${ tree.import_templates(itemClick='$root.assist.setPath', iconClick='$root.assist.togglePath', itemSelected='$root.assist.path() == path()', iconModifier=treeIcons, styleModifier='aclBit', styleModifierPullRight=aclBitPullRight, anchorProperty='path', showMore='$root.assist.loadMore', strikedProperty='striked', itemChecked='isChecked') } ${ commonfooter(messages) | n,unicode }