From: Matthias Schmidt Date: Wed, 14 Apr 2021 08:21:14 +0000 (+0200) Subject: Only show top add button on empty captcha question list page X-Git-Tag: 5.3.6~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8fe13cb4d73638a3adf2f3f80cd76bc67786b2a9;p=GitHub%2FWoltLab%2FWCF.git Only show top add button on empty captcha question list page Close #4072 --- diff --git a/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl b/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl index ba1afe0e4d..4835179d0c 100644 --- a/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl +++ b/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl @@ -39,7 +39,7 @@ {/hascontent} -{hascontent} +{if $objects|count}
@@ -52,45 +52,43 @@ - {content} - {foreach from=$objects item='question'} - - - - + {foreach from=$objects item='question'} + + - {/foreach} - {/content} + {event name='rowButtons'} + + + + + {event name='columns'} + + {/foreach}
- - - - - {event name='rowButtons'} - {$question->questionID}{$question->getQuestion()}
+ + + - {event name='columns'} -
{$question->questionID}{$question->getQuestion()}
-{hascontentelse} -

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

-{/hascontent} - - + +{else} +

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

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