|
|
|
@ -1,64 +1,4 @@
|
|
|
|
|
<table class="table table-striped privilege-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="privilege-table-header">
|
|
|
|
|
<th colspan="2"></th>
|
|
|
|
|
<th class="arrowed" colspan="3">
|
|
|
|
|
[[admin/manage/categories:privileges.section-viewing]]
|
|
|
|
|
</th>
|
|
|
|
|
<th class="arrowed" colspan="9">
|
|
|
|
|
[[admin/manage/categories:privileges.section-posting]]
|
|
|
|
|
</th>
|
|
|
|
|
<th class="arrowed" colspan="3">
|
|
|
|
|
[[admin/manage/categories:privileges.section-moderation]]
|
|
|
|
|
</th>
|
|
|
|
|
<!-- IF privileges.columnCountUserOther -->
|
|
|
|
|
<th class="arrowed" colspan="{privileges.columnCountUserOther}">
|
|
|
|
|
[[admin/manage/categories:privileges.section-other]]
|
|
|
|
|
</th>
|
|
|
|
|
<!-- END -->
|
|
|
|
|
</tr><tr><!-- zebrastripe reset --></tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th colspan="2">[[admin/manage/categories:privileges.section-user]]</th>
|
|
|
|
|
<!-- BEGIN privileges.labels.users -->
|
|
|
|
|
<th class="text-center">{privileges.labels.users.name}</th>
|
|
|
|
|
<!-- END privileges.labels.users -->
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<!-- IF privileges.users.length -->
|
|
|
|
|
<!-- BEGIN privileges.users -->
|
|
|
|
|
<tr data-uid="{privileges.users.uid}">
|
|
|
|
|
<td>
|
|
|
|
|
<!-- IF ../picture -->
|
|
|
|
|
<img class="avatar avatar-sm" src="{privileges.users.picture}" title="{privileges.users.username}" />
|
|
|
|
|
<!-- ELSE -->
|
|
|
|
|
<div class="avatar avatar-sm" style="background-color: {../icon:bgColor};">{../icon:text}</div>
|
|
|
|
|
<!-- ENDIF ../picture -->
|
|
|
|
|
</td>
|
|
|
|
|
<td>{privileges.users.username}</td>
|
|
|
|
|
{function.spawnPrivilegeStates, privileges.users.username, ../privileges}
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- END privileges.users -->
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="{privileges.columnCountUser}">
|
|
|
|
|
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user">
|
|
|
|
|
[[admin/manage/categories:privileges.search-user]]
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- ELSE -->
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="{privileges.columnCountUser}">
|
|
|
|
|
[[admin/manage/categories:privileges.no-users]]
|
|
|
|
|
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user">
|
|
|
|
|
[[admin/manage/categories:privileges.search-user]]
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- ENDIF privileges.users.length -->
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<label>[[admin/manage/privileges:group-privileges]]</label>
|
|
|
|
|
<table class="table table-striped privilege-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="privilege-table-header">
|
|
|
|
@ -132,3 +72,65 @@
|
|
|
|
|
<div class="help-block">
|
|
|
|
|
[[admin/manage/categories:privileges.inherit]]
|
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<label>[[admin/manage/privileges:user-privileges]]</label>
|
|
|
|
|
<table class="table table-striped privilege-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="privilege-table-header">
|
|
|
|
|
<th colspan="2"></th>
|
|
|
|
|
<th class="arrowed" colspan="3">
|
|
|
|
|
[[admin/manage/categories:privileges.section-viewing]]
|
|
|
|
|
</th>
|
|
|
|
|
<th class="arrowed" colspan="9">
|
|
|
|
|
[[admin/manage/categories:privileges.section-posting]]
|
|
|
|
|
</th>
|
|
|
|
|
<th class="arrowed" colspan="3">
|
|
|
|
|
[[admin/manage/categories:privileges.section-moderation]]
|
|
|
|
|
</th>
|
|
|
|
|
<!-- IF privileges.columnCountUserOther -->
|
|
|
|
|
<th class="arrowed" colspan="{privileges.columnCountUserOther}">
|
|
|
|
|
[[admin/manage/categories:privileges.section-other]]
|
|
|
|
|
</th>
|
|
|
|
|
<!-- END -->
|
|
|
|
|
</tr><tr><!-- zebrastripe reset --></tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th colspan="2">[[admin/manage/categories:privileges.section-user]]</th>
|
|
|
|
|
<!-- BEGIN privileges.labels.users -->
|
|
|
|
|
<th class="text-center">{privileges.labels.users.name}</th>
|
|
|
|
|
<!-- END privileges.labels.users -->
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<!-- IF privileges.users.length -->
|
|
|
|
|
<!-- BEGIN privileges.users -->
|
|
|
|
|
<tr data-uid="{privileges.users.uid}">
|
|
|
|
|
<td>
|
|
|
|
|
<!-- IF ../picture -->
|
|
|
|
|
<img class="avatar avatar-sm" src="{privileges.users.picture}" title="{privileges.users.username}" />
|
|
|
|
|
<!-- ELSE -->
|
|
|
|
|
<div class="avatar avatar-sm" style="background-color: {../icon:bgColor};">{../icon:text}</div>
|
|
|
|
|
<!-- ENDIF ../picture -->
|
|
|
|
|
</td>
|
|
|
|
|
<td>{privileges.users.username}</td>
|
|
|
|
|
{function.spawnPrivilegeStates, privileges.users.username, ../privileges}
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- END privileges.users -->
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="{privileges.columnCountUser}">
|
|
|
|
|
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user">
|
|
|
|
|
[[admin/manage/categories:privileges.search-user]]
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- ELSE -->
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="{privileges.columnCountUser}">
|
|
|
|
|
[[admin/manage/categories:privileges.no-users]]
|
|
|
|
|
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user">
|
|
|
|
|
[[admin/manage/categories:privileges.search-user]]
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- ENDIF privileges.users.length -->
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|