Commit cb8928fc authored by Georg Ringer's avatar Georg Ringer Committed by Christian Kuhn
Browse files

[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's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Tested-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 56b25356
{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>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment