[BUGFIX] Do not show empty dates of system news
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Partials / LoginNews.html
index 019b3e2..5a4f6bd 100644 (file)
@@ -37,6 +37,6 @@
 <f:section name="Item">
     <p id="loginNewsItem-{item.uid}" class="typo3-login-news-heading">{item.header}</p>
     <f:format.html>{item.content}</f:format.html>
-    <p class="text-muted"><span class="sr-only"><f:translate key="login.news.date"/></span>{item.date}</p>
+    <f:if condition="{item.date}"><p class="text-muted"><span class="sr-only"><f:translate key="login.news.date"/></span>{item.date}</p></f:if>
 </f:section>
 </html>