diff --git a/typo3/sysext/backend/Resources/Private/Partials/LoginNews.html b/typo3/sysext/backend/Resources/Private/Partials/LoginNews.html index 7b677c9f768a562e4676818dd5ea9b3deb29e7f4..d7565109648e5db30be021ff0cb1a561fdc9c71b 100644 --- a/typo3/sysext/backend/Resources/Private/Partials/LoginNews.html +++ b/typo3/sysext/backend/Resources/Private/Partials/LoginNews.html @@ -9,13 +9,15 @@ </div> </f:for> </div> - <a class="left typo3-login-carousel-control" href="#loginNews" role="button" data-slide="prev"> + <f:if condition="{loginNewsItems -> f:count()} > 1"> + <a class="left typo3-login-carousel-control" href="#loginNews" role="button" data-slide="prev"> <i class="fa fa-angle-left"></i> <span class="sr-only"><f:translate key="login.news.previous" /></span> - </a> - <a class="right typo3-login-carousel-control" href="#loginNews" role="button" data-slide="next"> - <i class="fa fa-angle-right"></i> - <span class="sr-only"><f:translate key="login.news.next" /></span> - </a> + </a> + <a class="right typo3-login-carousel-control" href="#loginNews" role="button" data-slide="next"> + <i class="fa fa-angle-right"></i> + <span class="sr-only"><f:translate key="login.news.next" /></span> + </a> + </f:if> </div> </f:if>