From cb8928fcdac384c2c2dff3ba0ac8eadb54a757a6 Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Fri, 28 Oct 2016 07:06:02 +0200 Subject: [PATCH] [TASK] Align user dropdown with all others Provide a title in the backend as well for the user dropdown Furthermore an empty module section is prevented. Resolves: #78475 Releases: master Change-Id: Ie1fd96c345a9bde2c2bc3c7f3248cf56e40729a7 Reviewed-on: https://review.typo3.org/50407 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Nicole Cordes <typo3@cordes.co> Tested-by: Nicole Cordes <typo3@cordes.co> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Joerg Boesche <typo3@joergboesche.de> Tested-by: Joerg Boesche <typo3@joergboesche.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../ToolbarItems/UserToolbarItemDropDown.html | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/UserToolbarItemDropDown.html b/typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/UserToolbarItemDropDown.html index 28ea6d9bc677..e2f62cd8a109 100644 --- a/typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/UserToolbarItemDropDown.html +++ b/typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/UserToolbarItemDropDown.html @@ -1,24 +1,30 @@ {namespace core = TYPO3\CMS\Core\ViewHelpers} -<div class="dropdown-table"> - <f:for each="{modules}" as="module"> - <div class="dropdown-table-row" - id="{module.name -> f:format.htmlspecialchars()}" - data-modulename="{module.name -> f:format.htmlspecialchars()}" - data-navigationcomponentid="{module.navigationComponentId -> f:format.htmlspecialchars()}" - data-navigationframescript="{module.navigationFrameScript -> f:format.htmlspecialchars()}" - data-navigationframescriptparameters="{module.navigationFrameScriptParameters -> f:format.htmlspecialchars()}" - > - <div class="dropdown-table-column dropdown-table-icon">{module.icon -> f:format.raw()}</div> - <div class="dropdown-table-column dropdown-table-title"> - <f:link.typolink parameter="{module.link}" title="{module.description}" class="modlink"> - {module.title} - </f:link.typolink> - </div> - </div> - </f:for> -</div> +<h3 class="dropdown-headline"> + {f:translate(key: 'LLL:EXT:lang/locallang_core.xlf:labels.user')} +</h3> <hr> +<f:if condition="{modules}"> + <div class="dropdown-table"> + <f:for each="{modules}" as="module"> + <div class="dropdown-table-row" + id="{module.name -> f:format.htmlspecialchars()}" + data-modulename="{module.name -> f:format.htmlspecialchars()}" + data-navigationcomponentid="{module.navigationComponentId -> f:format.htmlspecialchars()}" + data-navigationframescript="{module.navigationFrameScript -> f:format.htmlspecialchars()}" + data-navigationframescriptparameters="{module.navigationFrameScriptParameters -> f:format.htmlspecialchars()}" + > + <div class="dropdown-table-column dropdown-table-icon">{module.icon -> f:format.raw()}</div> + <div class="dropdown-table-column dropdown-table-title"> + <f:link.typolink parameter="{module.link}" title="{module.description}" class="modlink"> + {module.title} + </f:link.typolink> + </div> + </div> + </f:for> + </div> + <hr> +</f:if> <f:link.typolink parameter="{logoutUrl}" class="btn btn-danger pull-right" target="_top"> {icon -> f:format.raw()} <f:if condition="{switchUserMode}"> @@ -29,4 +35,4 @@ {f:translate(key: 'LLL:EXT:lang/locallang_core.xlf:buttons.logout', htmlEscape: 'FALSE')} </f:else> </f:if> -</f:link.typolink> \ No newline at end of file +</f:link.typolink> -- GitLab