From c9ec2575b15f22ae804e3067eb74a5880075876f Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 7 Jan 2007 15:33:10 +0000 Subject: only display path list when user has permissions to insert items into pigeonholes --- templates/pigeonholes_input_mini_inc.tpl | 62 ++++++++++++++++---------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/templates/pigeonholes_input_mini_inc.tpl b/templates/pigeonholes_input_mini_inc.tpl index 99fa2e9..4977774 100644 --- a/templates/pigeonholes_input_mini_inc.tpl +++ b/templates/pigeonholes_input_mini_inc.tpl @@ -1,37 +1,39 @@ {strip} -
- {formlabel label="Categorise" for="pigeonholes"} - {if $pigeonPathList|@count ne 0} - {forminput} - {if $pigeonPathList|@count < $gBitSystem->getConfig( 'pigeonholes_scrolling_list_number' )} - {foreach from=$pigeonPathList key=pigeonId item=path} - - {/foreach} - {else} - {foreach from=$path item=node} {if $node.parent_id} »{/if} {$node.title|escape} {/foreach} - +
+ {/foreach} - - {/if} - {/forminput} - {else} - {forminput} -

{tr}There are no categories available at the moment.{/tr}

- {if $gBitUser->isAdmin()} - {smartlink ititle="Create Category" ipackage="pigeonholes" ifile="edit_pigeonholes.php"} - {/if} - {/forminput} - {/if} -
+ {else} + + {/if} + {/forminput} + {else} + {forminput} +

{tr}There are no categories available at the moment.{/tr}

+ {if $gBitUser->isAdmin()} + {smartlink ititle="Create Category" ipackage="pigeonholes" ifile="edit_pigeonholes.php"} + {/if} + {/forminput} + {/if} + +{/if} {/strip} -- cgit v1.3