diff options
| author | spiderr <spider@viovio.com> | 2013-11-26 15:13:56 -0500 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-11-26 15:13:56 -0500 |
| commit | 21a6b7a45bb55be4a1b2d69af7b3de5b37830edc (patch) | |
| tree | acb6fc49d5e1c5c2a01c20ff8e64d1e3d82306c8 /templates/admin_layout_overview.tpl | |
| parent | 11544aeeba41f25109c92efbba9ec3c4225c5dc8 (diff) | |
| download | themes-21a6b7a45bb55be4a1b2d69af7b3de5b37830edc.tar.gz themes-21a6b7a45bb55be4a1b2d69af7b3de5b37830edc.tar.bz2 themes-21a6b7a45bb55be4a1b2d69af7b3de5b37830edc.zip | |
get rid of crazy numer => tab thing in admin_layout_overview
Diffstat (limited to 'templates/admin_layout_overview.tpl')
| -rw-r--r-- | templates/admin_layout_overview.tpl | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/templates/admin_layout_overview.tpl b/templates/admin_layout_overview.tpl index 6414224..06c8551 100644 --- a/templates/admin_layout_overview.tpl +++ b/templates/admin_layout_overview.tpl @@ -7,34 +7,17 @@ <input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="nocollapse" value="{$smarty.request.nocollapse}" /> - {foreach name=PkgLayouts from=$layouts item=layout key=module_package} - {if $smarty.foreach.PkgLayouts.total >= $tablimit} - <dl> - <dt>{$smarty.foreach.PkgLayouts.iteration}</dt> - {if !$module_package || $module_package == 'kernel'} - <dd>{tr}Default{/tr}</dd> - {else} - <dd>{$module_package|capitalize}</dd> - {/if} - </dl> - {/if} - {/foreach} - {jstabs} {foreach name=PkgLayouts from=$layouts item=layout key=module_package} - {* if there are too many tabs, we only display numbers *} - {if $smarty.foreach.PkgLayouts.total lt $tablimit} - {if !$module_package || $module_package == 'kernel'} - {assign var=TabTitle value="Default"} - {else} - {assign var=TabTitle value=$module_package|capitalize} - {/if} + {if !$module_package || $module_package == 'kernel'} + {assign var=tabTitle value="Default"|tra} {else} - {assign var=TabTitle value=" "|cat:$smarty.foreach.PkgLayouts.iteration|cat:" "} + {assign var=tabTitle value=$module_package|capitalize} {/if} - {jstab title=$TabTitle} + + {jstab title=$tabTitle} <div class="floaticon"> {smartlink ititle="Edit this Layout" booticon="icon-edit" page=layout module_package=$module_package} @@ -42,7 +25,7 @@ </div> <h1 id="{$module_package}"> - {tr}Current Layout of {if $TabTitle == 'Default'}Site Default{else}{$TabTitle}{/if}{/tr} + {tr}Current Layout{/tr} <strong>{$tabTitle}</strong> </h1> <table class="width100p"> |
