diff options
| -rw-r--r-- | templates/content_permissions.tpl | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/content_permissions.tpl b/templates/content_permissions.tpl index bdb9b35..0600928 100644 --- a/templates/content_permissions.tpl +++ b/templates/content_permissions.tpl @@ -20,18 +20,18 @@ <table class="data"> <caption>{tr}Permissions set for this content item{/tr}</caption> - <tr> - <th>{tr}Permission{/tr}</th> - {foreach from=$contentPerms.groups item=group} - {if count($contentPerms.groups) lt 10} - <th>{$group.group_name}</th> - {else} - <th>{$group.group_id}</th> - {/if} - {/foreach} - </tr> + {capture assign=th} + <tr> + <th>{tr}Permission{/tr}</th> + {foreach from=$contentPerms.groups item=group} + <th><abbr title="{$group.group_name}">{if count($contentPerms.groups) gt 10}{$group.group_name|truncate:4:false}{else}{$group.group_name}{/if}</abbr></th> + {/foreach} + </tr> + {/capture} + {$th} - {foreach from=$contentPerms.assignable key=perm item=permInfo} + {foreach from=$contentPerms.assignable key=perm item=permInfo name=perms} + {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"}"> <td>{$permInfo.perm_desc}<br /><em>({$permInfo.perm_name})</em></td> {foreach from=$contentPerms.groups key=groupId item=groupInfo} @@ -47,7 +47,7 @@ {assign var=icon value="list-remove"} {* is_revoked icon *} {/if} {/if} - <td style="text-align:center">{smartlink itra=false ititle="`$contentPerms.groups.$groupId.group_name`: $perm" ibiticon=icons/$size$icon action=$action content_id=$gContent->mContentId perm=$perm group_id=$groupId}</td> + <td style="text-align:center">{smartlink itra=false ititle="`$contentPerms.groups.$groupId.group_name` :: $perm" ibiticon=icons/$size$icon action=$action content_id=$gContent->mContentId perm=$perm group_id=$groupId}</td> {/foreach} </tr> {/foreach} @@ -57,7 +57,7 @@ <h2>{tr}Legend{/tr}</h2> <dl> {foreach from=$contentPerms.groups item=group} - <dt>{$group.group_id}</dt> + <dt>{$group.group_name|truncate:4:false}</dt> <dd>{$group.group_name}: {$group.group_desc}</dd> {/foreach} </dl> |
