From abb4057e2b0460e4d66147d70da9ca66c811e52d Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Thu, 16 Apr 2020 00:37:43 +0200
Subject: [PATCH] [BUGFIX] Add footer section to ListWidget template

Adds the missing footer section, including the button definition,
which can be set in the configuration, to the widget template.

Resolves: #91056
Releases: master
Change-Id: I2ec3c954e0ac8fec0814848fdb0d4bea897b48d3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64195
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Tested-by: Josef Glatz <josefglatz@gmail.com>
Tested-by: Benjamin Franzke <bfr@qbus.de>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Josef Glatz <josefglatz@gmail.com>
Reviewed-by: Benjamin Franzke <bfr@qbus.de>
---
 .../Resources/Private/Templates/Widget/ListWidget.html       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/typo3/sysext/dashboard/Resources/Private/Templates/Widget/ListWidget.html b/typo3/sysext/dashboard/Resources/Private/Templates/Widget/ListWidget.html
index a932a8319360..de8f8c12cf45 100644
--- a/typo3/sysext/dashboard/Resources/Private/Templates/Widget/ListWidget.html
+++ b/typo3/sysext/dashboard/Resources/Private/Templates/Widget/ListWidget.html
@@ -11,4 +11,9 @@
     </f:if>
 
 </f:section>
+<f:section name="footer">
+    <f:if condition="{button}">
+        <a href="{button.link}" target="{button.target}" class="widget-cta">{f:translate(id: button.text, default: button.text)}</a>
+    </f:if>
+</f:section>
 </html>
-- 
GitLab