[BUGFIX] Move EM tabs to function menu 81/19581/2
authorFelix Kopp <felix-source@phorax.com>
Fri, 5 Apr 2013 08:44:11 +0000 (10:44 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 5 Apr 2013 16:18:14 +0000 (18:18 +0200)
Changes the tabs in extension manager to a function menu.
The views to manage+get extensions are different from a
user perspective.

Change-Id: I2612667cdb2656fa8954b09ada858581318b3c1d
Fixes: #46931
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/19581
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Resources/Private/Layouts/Main.html
typo3/sysext/extensionmanager/Resources/Private/Templates/Configuration/ShowConfigurationForm.html
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
typo3/sysext/extensionmanager/Resources/Private/Templates/List/ShowAllVersions.html
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Ter.html
typo3/sysext/extensionmanager/Resources/Private/Templates/UpdateScript/Show.html

index 93b6340..d921b5e 100644 (file)
 
        <div id="typo3-docheader">
                <div class="typo3-docheader-functions">
-                       <f:render section="functions" />
+                       <f:be.menus.actionMenu>
+                               <f:be.menus.actionMenuItem label="{f:translate(key: 'manageExtensions')}" controller="List" action="index" />
+                               <f:be.menus.actionMenuItem label="{f:translate(key: 'getExtensions')}" controller="List" action="ter" />
+                               <f:if condition="{0: actionName} == {0: 'showAllVersions'}">
+                                       <f:be.menus.actionMenuItem label="{f:translate(key: 'showAllVersions')} {extensionKey}" controller="List" action="showAllVersions" />
+                               </f:if>
+                       </f:be.menus.actionMenu>
                </div>
                <div class="typo3-docheader-buttons">
-                       <f:render section="buttons" />
+                       <f:render section="docheader-buttons" />
                </div>
        </div>
        <div id="typo3-docbody">
                        <h2><f:translate key="extensionManager">Extension Manager</f:translate></h2>
 
                        <div id="typo3-extension-main-menu">
-                               <div class="tabs">
-                                       <ul>
-                                               <li>
-                                                       <f:link.action action="index" controller="List" class="{f:if(condition:'{0: actionName} == {0: \'index\'}', then:'current', else: '')}">
-                                                               <f:translate key="manageExtensions" />
-                                                       </f:link.action>
-                                               </li>
-                                               <li>
-                                                       <f:link.action action="ter" controller="List" class="{f:if(condition:'{0: actionName} == {0: \'ter\'}', then:'current', else: '')}">
-                                                               <f:translate key="getExtensions" />
-                                                       </f:link.action>
-                                               </li>
-                                               <f:if condition="{0: actionName} == {0: 'showAllVersions'}">
-                                                       <li>
-                                                               <f:link.action action="ter" controller="List" class="current">
-                                                                       <f:translate key="showAllVersions" /> "{extensionKey}"
-                                                               </f:link.action>
-                                                       </li>
-                                               </f:if>
-                                       </ul>
-                               </div>
                        </div>
                        <div class="contentWrapper"><f:render section="Content" /></div>
                </div>
index 10a74ed..5a9d1fd 100644 (file)
@@ -1,10 +1,7 @@
 {namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}
 <f:layout name="main" />
 
-<f:section name="functions">
-</f:section>
-
-<f:section name="buttons">
+<f:section name="docheader-buttons">
        <f:be.buttons.icon uri="{f:uri.action(action:'index',controller:'List',additionalParams:{search:extension.key})}" icon="actions-view-go-back" title="{f:translate(key:'extConfTemplate.backToList')}" />
 </f:section>
 
index 57ff9b1..3b03a8f 100644 (file)
@@ -2,10 +2,7 @@
 
 <f:layout name="main" />
 
-<f:section name="functions">
-</f:section>
-
-<f:section name="buttons">
+<f:section name="docheader-buttons">
        <f:be.buttons.icon uri="{f:uri.action(action:'form',controller:'UploadExtensionFile')}" icon="actions-edit-upload" title="{f:translate(key:'extensionList.uploadExtension')}"/>
 </f:section>
 
index 9e3bc1d..49ada48 100644 (file)
@@ -2,10 +2,7 @@
 
 <f:layout name="main"/>
 
-<f:section name="functions">
-</f:section>
-
-<f:section name="buttons">
+<f:section name="docheader-buttons">
 </f:section>
 
 <f:section name="Content">
index b9e159b..dfd2d9f 100644 (file)
@@ -2,10 +2,7 @@
 
 <f:layout name="main"/>
 
-<f:section name="functions">
-</f:section>
-
-<f:section name="buttons">
+<f:section name="docheader-buttons">
 </f:section>
 
 <f:section name="Content">
index 72bb6bb..495e6ce 100644 (file)
@@ -2,10 +2,7 @@
 
 <f:layout name="main" />
 
-<f:section name="functions">
-</f:section>
-
-<f:section name="buttons">
+<f:section name="docheader-buttons">
        <f:be.buttons.icon uri="{f:uri.action(action:'index',controller:'List',additionalParams:{search:extensionKey})}" icon="actions-view-go-back" title="{f:translate(key:'extConfTemplate.backToList')}" />
 </f:section>