diff options
| author | Daniel Sutcliffe <dansut@users.sourceforge.net> | 2009-03-09 16:59:01 +0000 |
|---|---|---|
| committer | Daniel Sutcliffe <dansut@users.sourceforge.net> | 2009-03-09 16:59:01 +0000 |
| commit | 1a4bb259e17681b47c9184622cf00b7cf02ac85c (patch) | |
| tree | 09d7772dace738de39fe7e04269a70c42f7ffcbe | |
| parent | 6a78f06d80443d872c6dc8048cfcf8691deb9a75 (diff) | |
| download | liberty-1a4bb259e17681b47c9184622cf00b7cf02ac85c.tar.gz liberty-1a4bb259e17681b47c9184622cf00b7cf02ac85c.tar.bz2 liberty-1a4bb259e17681b47c9184622cf00b7cf02ac85c.zip | |
Don't show the Format Help tab if there is none to show
| -rw-r--r-- | templates/edit_help_inc.tpl | 32 |
1 files 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"} - <h2>{tr}Syntax and input format help{/tr}</h2> - {foreach from=$formatplugins item=p} - <h3>{if $p.format_help}<a href="#{$p.plugin_guid}">{/if}{$p.edit_label} Help{if $p.format_help}</a>{/if}</h3> - {$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"} + <h2>{tr}Syntax and input format help{/tr}</h2> + {foreach from=$formatplugins item=p} + <h3>{if $p.format_help}<a href="#{$p.plugin_guid}">{/if}{$p.edit_label} Help{if $p.format_help}</a>{/if}</h3> + {$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} - <a name="{$p.plugin_guid}"></a> - <h1>{$p.edit_label} Help</h1> - {include file=$p.format_help} - {/if} - {/foreach} -{/jstab} + {foreach from=$formatplugins item=p} + {if $p.format_help} + <a name="{$p.plugin_guid}"></a> + <h1>{$p.edit_label} Help</h1> + {include file=$p.format_help} + {/if} + {/foreach} + {/jstab} +{/if} {/strip} |
