diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2007-07-15 17:22:40 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2007-07-15 17:22:40 +0000 |
| commit | 9b32a5aeaa617a3d8fea3efa0d386cb4c06b0201 (patch) | |
| tree | caa1cadbc884a58c113f970a7ceb8c335677261e /templates/admin_permissions.tpl | |
| parent | 7a734fccbf4b19053f94fc97579a46707754d62a (diff) | |
| download | users-9b32a5aeaa617a3d8fea3efa0d386cb4c06b0201.tar.gz users-9b32a5aeaa617a3d8fea3efa0d386cb4c06b0201.tar.bz2 users-9b32a5aeaa617a3d8fea3efa0d386cb4c06b0201.zip | |
repeat table headers more frequently
Diffstat (limited to 'templates/admin_permissions.tpl')
| -rw-r--r-- | templates/admin_permissions.tpl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/admin_permissions.tpl b/templates/admin_permissions.tpl index 2a5675a..cc6ef49 100644 --- a/templates/admin_permissions.tpl +++ b/templates/admin_permissions.tpl @@ -26,14 +26,13 @@ <th>{tr}Permission{/tr}</th> <th>{tr}Package{/tr}</th> {foreach from=$allGroups item=group name=groups} - <th><abbr title="{$group.group_name}">{if $smarty.foreach.groups.total > 10}{$group.group_id}{else}{$group.group_name}{/if}</abbr></th> + <th><abbr title="{$group.group_name}">{if $smarty.foreach.groups.total > 8}{$group.group_id}{else}{$group.group_name}{/if}</abbr></th> {/foreach} </tr> {/capture} {$th} {foreach from=$allPerms item=perm key=p name=perms} - {* insert headers every 20 lines *} - {if ($smarty.foreach.perms.iteration % 20) eq 0 and ($smarty.foreach.perms.total - $smarty.foreach.perms.iteration) gt 15}{$th}{/if} + {if ($smarty.foreach.perms.iteration % 10) eq 0 and ($smarty.foreach.perms.total - $smarty.foreach.perms.iteration) gt 5}{$th}{/if} <tr class="{cycle values="odd,even"}{if $unassignedPerms.$p} warning{/if}"> <td>{if $unassignedPerms.$p}{biticon iname=dialog-warning iexplian="Unassigned Permission"}{/if}</td> <td><span title="{$perm.perm_desc}">{$p}</span></td> @@ -52,7 +51,7 @@ </div> {/form} - {if $smarty.foreach.groups.total > 10} + {if $smarty.foreach.groups.total > 8} <dl> {foreach from=$allGroups item=group} <dt>{$group.group_id}</dt> |
