passing in the column count so a message can be displayed to users when no users have privs in a category, #2887

This commit is contained in:
Julian Lam
2015-03-25 17:34:16 -04:00
parent 60b19a9d62
commit 4f2c7382c5
2 changed files with 10 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
<th class="text-center">{privileges.labels.users.name}</th>
<!-- END privileges.labels.users -->
</tr>
<!-- IF privileges.users.length -->
<!-- BEGIN privileges.users -->
<tr data-uid="{uid}">
<td><img src="{picture}" title="{username}" /></td>
@@ -13,6 +14,13 @@
{function.spawnPrivilegeStates, privileges}
</tr>
<!-- END privileges.users -->
<!-- ELSE -->
<tr>
<td colspan="{privileges.columnCount}">
<div class="alert alert-info">No user-specific privileges in this category.</div>
</td>
</tr>
<!-- ENDIF privileges.users.length -->
</table>
<table class="table table-striped table-hover privilege-table">