From 8fe13cb4d73638a3adf2f3f80cd76bc67786b2a9 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 14 Apr 2021 10:21:14 +0200 Subject: [PATCH] Only show top add button on empty captcha question list page Close #4072 --- .../acp/templates/captchaQuestionList.tpl | 68 +++++++++---------- 1 file changed, 33 insertions(+), 35 deletions(-) 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'} -- 2.20.1