From ee1c80c02a36f946c97cf8b3171c1224d814c43b Mon Sep 17 00:00:00 2001 From: Graham Cole <chckens@sucs.org> Date: Tue, 7 Oct 2008 17:20:44 +0000 Subject: [PATCH] don't show breadcrumb <ul> when there are no crumbs to show. Fixes #60 --- templates/breadcrumb.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/breadcrumb.tpl b/templates/breadcrumb.tpl index d239049..b77a6ca 100644 --- a/templates/breadcrumb.tpl +++ b/templates/breadcrumb.tpl @@ -1,7 +1,9 @@ <div id="breadcrumb"> +{if $pathlist} <ul> {foreach name=pathlist from=$pathlist key=key item=item} <li>{if !$smarty.foreach.pathlist.first}{if $item!=""}> {/if}{/if}{if !$smarty.foreach.pathlist.last}<a href="{buildpath list=$pathlist item=$item|escape:'url'}">{/if}{if $item}{$item|escape:'htmlall'}{else}{if $smarty.foreach.pathlist.first}SUCS{/if}{/if}{if !$smarty.foreach.pathlist.last}</a>{/if}</li> {/foreach} </ul> +{/if} </div> -- GitLab