Current File : //usr/local/jetapps/var/www/jetbackup5/docroot/app/views/filePermissions.htm |
<div ng-controller="filePermissions" class="controller-box">
<h1>{{ lang.t("File Permissions") }}</h1>
<div class="row search-page-container">
<div class="col-xs-12 col-sm-5 col-md-4 col-lg-6">
<button class="btn btn-default" ng-click="fetch()" title="{{ lang.t('Refresh Records') }}">
<em class="fas fa-redo"></em>
</button>
<a href="{{primaryURL}}/filePermissionsManage" class="btn btn-primary" ng-click="changeView('/filePermissionsManage')">
<em class="fas fa-plus"></em>
{{ lang.t("Create New File Permission") }}
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-2">
<filter-box
box-options="filterOptions"
ng-model="filter"
ng-change="fetch()">
</filter-box>
</div>
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4">
<search ng-model="metaData.filterValue" ng-change="fetch()"></search>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped content-table">
<thead>
<tr>
<th class="col-sm-6 col-md-6 col-lg-6 column-title">
<button sort-by sort-meta="meta" sort-field="regex" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Glob Pattern')) }}">{{ lang.t("Glob Pattern") }}</button>
</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">
<button sort-by sort-meta="meta" sort-field="category" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Category')) }}">{{ lang.t("Category") }}</button>
</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">
<button sort-by sort-meta="meta" sort-field="owner" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Owner')) }}">{{ lang.t("Owner") }}</button>
</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">
<button sort-by sort-meta="meta" sort-field="group" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Group')) }}">{{ lang.t("Group") }}</button>
</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">
<button sort-by sort-meta="meta" sort-field="recursive" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Recursive')) }}">{{ lang.t("recursive") }}</button>
</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">
<button sort-by sort-meta="meta" sort-field="dirs_permissions" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Directories Permissions')) }}">{{ lang.t("Dirs Perms") }}</button>
</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">
<button sort-by sort-meta="meta" sort-field="files_permissions" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Files Permissions')) }}">{{ lang.t("Files Perms") }}</button>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat-start="permission in permissions track by $index" id="permission_row_{{$index}}" ng-click="openActions(permission)" class="pointer">
<td data-title="{{ lang.t('Glob Pattern') }}">
<span title="{{ permission.regex }}">{{ permission.regex }}</span>
</td>
<td data-title="{{ lang.t('Category') }}">
{{ const.FILE_PERMISSIONS_CATEGORIES[permission.category] }}
</td>
<td data-title="{{ lang.t('Owner') }}">
<span title="{{ permission.owner }}" ng-class="{ 'text-orange text-bold': permission.owner }">{{ permission.owner ? permission.owner : lang.t('default') }}</span>
</td>
<td data-title="{{ lang.t('Group') }}">
<span title="{{ permission.group }}" ng-class="{ 'text-orange text-bold': permission.group }">{{ permission.group ? permission.group : lang.t('default') }}</span>
</td>
<td data-title="{{ lang.t('Recursive') }}">
{{ permission.recursive ? lang.t("Yes") : lang.t('No') }}
</td>
<td data-title="{{ lang.t('Directories Permissions') }}">
<span title="{{ permission.dirs_permissions }}" ng-class="{ 'text-orange text-bold': permission.dirs_permissions }">{{ permission.dirs_permissions ? permission.dirs_permissions : lang.t('None') }}</span>
</td>
<td data-title="{{ lang.t('Files Permissions') }}">
<span title="{{ permission.files_permissions }}" ng-class="{ 'text-orange text-bold': permission.files_permissions }">{{ permission.files_permissions ? permission.files_permissions : lang.t('None') }}</span>
</td>
</tr>
<tr ng-repeat-end id="dt_module_row_{{$index}}">
<td colspan="7" class="actions-cell">
<div class="action-module" ng-if="isOpenedActions(permission)" ng-include="includePath('filePermissionsActions')"></div>
</td>
</tr>
<tr ng-hide="!loadingPermissions">
<td colspan="7">
<loading-box>
<span>{{ lang.t("Loading File Permissions") }}</span>
</loading-box>
</td>
</tr>
<tr ng-hide="permissions.length > 0 || loadingPermissions">
<td colspan="7">
<span>{{ lang.t("No File Permissions Found") }}</span>
</td>
</tr>
</tbody>
</table>
</div>
<pagination fetch="fetch" meta="meta"></pagination>
</div>