From 2dba931ff4b19be7197f2663d5865055b1f49692 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Wed, 10 Jan 2007 11:23:06 +0000 Subject: only display subtree when requested and when there's more than one to show --- templates/list.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/list.tpl') diff --git a/templates/list.tpl b/templates/list.tpl index 37ff9a3..2091dd3 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -37,7 +37,9 @@ {/if}

{$item.display_link}

{$item.data|escape} - {include file="bitpackage:pigeonholes/view_structure_inc.tpl" subtree=$item.subtree no_details=true} + {if $gBitSystem->isFeatureActive( 'pigeonholes_display_subtree' ) && count($item.subtree) > 1} + {include file="bitpackage:pigeonholes/view_structure_inc.tpl" subtree=$item.subtree no_details=true} + {/if}
{foreachelse}
-- cgit v1.3