From 1a4bb259e17681b47c9184622cf00b7cf02ac85c Mon Sep 17 00:00:00 2001 From: Daniel Sutcliffe Date: Mon, 9 Mar 2009 16:59:01 +0000 Subject: Don't show the Format Help tab if there is none to show --- templates/edit_help_inc.tpl | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/templates/edit_help_inc.tpl b/templates/edit_help_inc.tpl index 0435b03..c1bfa2c 100644 --- a/templates/edit_help_inc.tpl +++ b/templates/edit_help_inc.tpl @@ -1,5 +1,5 @@ {strip} -{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/edit_help_inc.tpl,v 1.32 2009/01/03 09:37:44 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/edit_help_inc.tpl,v 1.33 2009/03/09 16:59:01 dansut Exp $ *} {if $dataplugins} {jstab title="Plugins"} @@ -57,19 +57,21 @@ {/jstab} {/if} -{jstab title="Format Help"} -

{tr}Syntax and input format help{/tr}

- {foreach from=$formatplugins item=p} -

{if $p.format_help}{/if}{$p.edit_label} Help{if $p.format_help}{/if}

- {$p.description} {if $p.help_page}{tr}To view syntax help, please visit {jspopup href="http://www.bitweaver.org/wiki/index.php?page=`$p.help_page`" title=$p.help_page class=external}.{/tr}{/if} - {/foreach} +{if $formatplugins} + {jstab title="Format Help"} +

{tr}Syntax and input format help{/tr}

+ {foreach from=$formatplugins item=p} +

{if $p.format_help}{/if}{$p.edit_label} Help{if $p.format_help}{/if}

+ {$p.description} {if $p.help_page}{tr}To view syntax help, please visit {jspopup href="http://www.bitweaver.org/wiki/index.php?page=`$p.help_page`" title=$p.help_page class=external}.{/tr}{/if} + {/foreach} - {foreach from=$formatplugins item=p} - {if $p.format_help} - -

{$p.edit_label} Help

- {include file=$p.format_help} - {/if} - {/foreach} -{/jstab} + {foreach from=$formatplugins item=p} + {if $p.format_help} + +

{$p.edit_label} Help

+ {include file=$p.format_help} + {/if} + {/foreach} + {/jstab} +{/if} {/strip} -- cgit v1.3