diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-10 11:23:06 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-10 11:23:06 +0000 |
| commit | 2dba931ff4b19be7197f2663d5865055b1f49692 (patch) | |
| tree | 9f6b29bcb764dcaec0dffed1ea8451137b02499f | |
| parent | 506d92cc28627eb24be2946cb64888b207d0f0a2 (diff) | |
| download | pigeonholes-2dba931ff4b19be7197f2663d5865055b1f49692.tar.gz pigeonholes-2dba931ff4b19be7197f2663d5865055b1f49692.tar.bz2 pigeonholes-2dba931ff4b19be7197f2663d5865055b1f49692.zip | |
only display subtree when requested and when there's more than one to show
| -rw-r--r-- | templates/list.tpl | 4 |
1 files changed, 3 insertions, 1 deletions
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} <h2>{$item.display_link}</h2> {$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} <hr /> {foreachelse} <div class="norecords"> |
