From b24c3646f625891fd78695b52e97aee6e0a03564 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jasmina=20Lie=C3=9Fmann?= <minapokhalo+typo3@gmail.com>
Date: Wed, 10 Apr 2024 19:25:49 +0200
Subject: [PATCH] [TASK] Show information text as infobox in EXT:indexed_search

If no page has been selected in the "Indexing" backend module, an
information is displayed. This text is now displayed in the typical
infobox style instead of as a heading.

Resolves: #103590
Releases: main, 12.4
Change-Id: I6e44c5ad8502eb7ecb71581cb11084543c3e13aa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83752
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
---
 .../Private/Templates/Administration/Statistic.html          | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/indexed_search/Resources/Private/Templates/Administration/Statistic.html b/typo3/sysext/indexed_search/Resources/Private/Templates/Administration/Statistic.html
index 3e9cf331617b..6378b7817014 100644
--- a/typo3/sysext/indexed_search/Resources/Private/Templates/Administration/Statistic.html
+++ b/typo3/sysext/indexed_search/Resources/Private/Templates/Administration/Statistic.html
@@ -143,7 +143,10 @@
             </div>
         </f:then>
         <f:else>
-            <h2><f:translate key="administration.noPageSelected" /></h2>
+            <f:be.infobox
+                message="{f:translate(key:'LLL:EXT:indexed_search/Resources/Private/Language/locallang.xlf:administration.noPageSelected')}"
+                state="-1"
+            />
         </f:else>
     </f:if>
 </f:section>
-- 
GitLab