From: Matthias Schmidt Date: Fri, 8 Apr 2016 06:54:55 +0000 (+0200) Subject: Fix nested hascontent X-Git-Tag: 3.0.0_Beta_1~1950 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a21672e2408fd692a957952de762827e35df7b4;p=GitHub%2FWoltLab%2FWCF.git Fix nested hascontent --- diff --git a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl index 797a72f48d..58062279f3 100644 --- a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl @@ -39,7 +39,7 @@ {/hascontent} -{hascontent} +{if $objects|count}
@@ -55,27 +55,25 @@ - {content} - {foreach from=$objects item=cronjobLog} - - - - - - - - - {event name='columns'} - - {/foreach} - {/content} + {foreach from=$objects item=cronjobLog} + + + + + + + + + {event name='columns'} + + {/foreach}
{@$cronjobLog->cronjobID}{$cronjobLog->className}{$cronjobLog->description|language}{if $cronjobLog->execTime}{@$cronjobLog->execTime|time}{/if} - {if $cronjobLog->success} - {lang}wcf.acp.cronjob.log.success{/lang} - {elseif $cronjobLog->error} - {lang}wcf.acp.cronjob.log.error{/lang} - {@$cronjobLog->error} - {/if} -
{@$cronjobLog->cronjobID}{$cronjobLog->className}{$cronjobLog->description|language}{if $cronjobLog->execTime}{@$cronjobLog->execTime|time}{/if} + {if $cronjobLog->success} + {lang}wcf.acp.cronjob.log.success{/lang} + {elseif $cronjobLog->error} + {lang}wcf.acp.cronjob.log.error{/lang} + {@$cronjobLog->error} + {/if} +
@@ -101,8 +99,8 @@ {/hascontent} -{hascontentelse} +{else}

{lang}wcf.acp.cronjob.log.noEntries{/lang}

-{/hascontent} +{/if} {include file='footer'} diff --git a/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl b/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl index e9874879e2..5fae99af73 100644 --- a/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl +++ b/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl @@ -29,7 +29,7 @@ {/hascontent} -{hascontent} +{if $objects|count}
@@ -46,27 +46,25 @@ - {content} - {foreach from=$objects item=updateServer} - - - - - - - - + {foreach from=$objects item=updateServer} + + - {/foreach} - {/content} + {event name='itemButtons'} + + + + + + + + + {event name='columns'} + + {/foreach}
- - - - - {event name='itemButtons'} - {@$updateServer->packageUpdateServerID}{$updateServer->serverURL}{#$updateServer->packages}{@$updateServer->status}{@$updateServer->errorMessage|truncate:"30"}{if $updateServer->lastUpdateTime}{@$updateServer->lastUpdateTime|time}{/if}
+ + + - {event name='columns'} -
{@$updateServer->packageUpdateServerID}{$updateServer->serverURL}{#$updateServer->packages}{@$updateServer->status}{@$updateServer->errorMessage|truncate:"30"}{if $updateServer->lastUpdateTime}{@$updateServer->lastUpdateTime|time}{/if}
@@ -87,8 +85,8 @@ -{hascontentelse} +{else}

{lang}wcf.global.noItems{/lang}

-{/hascontent} +{/if} {include file='footer'} diff --git a/wcfsetup/install/files/acp/templates/userRankList.tpl b/wcfsetup/install/files/acp/templates/userRankList.tpl index f26e56b657..123896538e 100644 --- a/wcfsetup/install/files/acp/templates/userRankList.tpl +++ b/wcfsetup/install/files/acp/templates/userRankList.tpl @@ -28,7 +28,7 @@
{/hascontent} -{hascontent} +{if $objects|count}
@@ -45,26 +45,24 @@ - {content} - {foreach from=$objects item=userRank} - - - - - - - - + {foreach from=$objects item=userRank} + + - {/foreach} - {/content} + {event name='rowButtons'} + + + + + + + + + {event name='columns'} + + {/foreach}
- - - - {event name='rowButtons'} - {@$userRank->rankID}{$userRank->rankTitle|language}{if $userRank->rankImage}{@$userRank->getImage()}{/if}{$userRank->groupName|language}{if $userRank->requiredGender}{if $userRank->requiredGender == 1}{lang}wcf.user.gender.male{/lang}{else}{lang}wcf.user.gender.female{/lang}{/if}{/if}{#$userRank->requiredPoints}
+ + - {event name='columns'} -
{@$userRank->rankID}{$userRank->rankTitle|language}{if $userRank->rankImage}{@$userRank->getImage()}{/if}{$userRank->groupName|language}{if $userRank->requiredGender}{if $userRank->requiredGender == 1}{lang}wcf.user.gender.male{/lang}{else}{lang}wcf.user.gender.female{/lang}{/if}{/if}{#$userRank->requiredPoints}
@@ -84,8 +82,8 @@ -{hascontentelse} +{else}

{lang}wcf.global.noItems{/lang}

-{/hascontent} +{/if} {include file='footer'}