diff options
| author | spiderr <spider@viovio.com> | 2013-04-18 11:14:47 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-18 11:14:47 -0400 |
| commit | 8df82401dfbd3e725c01941de93b26e809a74ea1 (patch) | |
| tree | 9d0cf8d2d23d237645a1ff1c6aaeaa34c372eecb /templates | |
| parent | 9b4cff31ba42c0e14edc5cd51fe505a1ccd7426c (diff) | |
| download | fisheye-8df82401dfbd3e725c01941de93b26e809a74ea1.tar.gz fisheye-8df82401dfbd3e725c01941de93b26e809a74ea1.tar.bz2 fisheye-8df82401dfbd3e725c01941de93b26e809a74ea1.zip | |
tweak menu to display title link only when passed var
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/menu_fisheye.tpl | 2 | ||||
| -rw-r--r-- | templates/menu_fisheye_admin.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/menu_fisheye.tpl b/templates/menu_fisheye.tpl index 2300497..4dfad14 100644 --- a/templates/menu_fisheye.tpl +++ b/templates/menu_fisheye.tpl @@ -1,5 +1,5 @@ {strip} -<a class="dropdown-toggle" data-toggle="dropdown" href="#"> {tr}{$packageMenuTitle}{/tr} <b class="caret"></b></a> +{if $packageMenuTitle}<a class="dropdown-toggle" data-toggle="dropdown" href="#"> {tr}{$packageMenuTitle}{/tr} <b class="caret"></b></a>{/if} <ul class="{$packageMenuClass}"> {if $gBitUser->hasPermission('p_fisheye_view')} <li><a class="item" href="{$smarty.const.FISHEYE_PKG_URL}list_galleries.php">{booticon iname="icon-list" iexplain="List Galleries" ilocation=menu}</a></li> diff --git a/templates/menu_fisheye_admin.tpl b/templates/menu_fisheye_admin.tpl index 16c7301..226e3c1 100644 --- a/templates/menu_fisheye_admin.tpl +++ b/templates/menu_fisheye_admin.tpl @@ -1,5 +1,5 @@ {strip} <li> - <a href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=fisheye">{tr}{$smarty.const.FISHEYE_PKG_DIR|capitalize}{/tr}</a> +{if $packageMenuTitle}<a href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=fisheye">{tr}{$smarty.const.FISHEYE_PKG_DIR|capitalize}{/tr}</a>{/if} </li> {/strip} |
