[CLEANUP] Streamline backend toolbar items
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Templates / ToolbarItems / UserToolbarItemDropDown.html
index c34ad07..475be8c 100644 (file)
@@ -1,36 +1,38 @@
+<html xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">
 <h3 class="dropdown-headline">
-    {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.user')}
+       {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/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>
+       <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">
+                                       <a href="{module.link}" title="{module.description}">
+                                               {module.title}
+                                       </a>
+                               </div>
+                       </div>
+               </f:for>
+       </div>
+       <hr>
 </f:if>
-<f:link.typolink parameter="{logoutUrl}" class="btn btn-danger pull-left" target="_top">
-    {icon -> f:format.raw()}
-    <f:if condition="{switchUserMode}">
-        <f:then>
-            {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:buttons.exit') -> f:format.raw()}
-        </f:then>
-        <f:else>
-            {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:buttons.logout') -> f:format.raw()}
-        </f:else>
-    </f:if>
-</f:link.typolink>
+<a href="{logoutUrl}" class="btn btn-danger pull-left" target="_top">
+       <core:icon identifier="actions-logout" size="small" alternativeMarkupIdentifier="inline"/>
+       <f:if condition="{switchUserMode}">
+               <f:then>
+                       {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:buttons.exit') -> f:format.raw()}
+               </f:then>
+               <f:else>
+                       {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:buttons.logout') -> f:format.raw()}
+               </f:else>
+       </f:if>
+</a>
+</html>