From 78a7971f418667eb24d45f5886006fb22542e503 Mon Sep 17 00:00:00 2001 From: "bitweaver.org" Date: Sun, 15 Jul 2007 17:34:22 +0000 Subject: slightly better layout --- templates/content_permissions.tpl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'templates/content_permissions.tpl') 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 @@ - - - {foreach from=$contentPerms.groups item=group} - {if count($contentPerms.groups) lt 10} - - {else} - - {/if} - {/foreach} - + {capture assign=th} + + + {foreach from=$contentPerms.groups item=group} + + {/foreach} + + {/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} {foreach from=$contentPerms.groups key=groupId item=groupInfo} @@ -47,7 +47,7 @@ {assign var=icon value="list-remove"} {* is_revoked icon *} {/if} {/if} - + {/foreach} {/foreach} @@ -57,7 +57,7 @@

{tr}Legend{/tr}

{foreach from=$contentPerms.groups item=group} -
{$group.group_id}
+
{$group.group_name|truncate:4:false}
{$group.group_name}: {$group.group_desc}
{/foreach}
-- cgit v1.3
{tr}Permissions set for this content item{/tr}
{tr}Permission{/tr}{$group.group_name}{$group.group_id}
{tr}Permission{/tr}{if count($contentPerms.groups) gt 10}{$group.group_name|truncate:4:false}{else}{$group.group_name}{/if}
{$permInfo.perm_desc}
({$permInfo.perm_name})
{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}{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}