[TASK] Align user dropdown with all others 07/50407/7
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 28 Oct 2016 05:06:02 +0000 (07:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 18 Nov 2016 22:21:21 +0000 (23:21 +0100)
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>
typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/UserToolbarItemDropDown.html

index 28ea6d9..e2f62cd 100644 (file)
@@ -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>