[TASK] Remove go-up button in filelist 86/25086/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 31 Oct 2013 09:06:17 +0000 (10:06 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 3 Nov 2013 13:45:40 +0000 (14:45 +0100)
There is no go-up funtionality currently. The current icon links to the
current page. Therefore it should be removed

Change-Id: I177ad4d136bfb008861a1f890d246d790ce23c23
Resolves: #53226
Releases: 6.2
Reviewed-on: https://review.typo3.org/25086
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/filelist/Resources/Private/Templates/file_list.html

index 862c54d..06a6a40 100644 (file)
@@ -369,7 +369,7 @@ class FileListController {
                        $content = '';
                        if ($this->errorMessage) {
                                $this->errorMessage->setSeverity(\TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
-                               $content = $this->doc->moduleBody(array(), array_merge(array('LEVEL_UP' => '', 'REFRESH' => ''), $this->getButtons()), array('CSH' => '', 'TITLE' => '', 'FOLDER_INFO' => '', 'PAGE_ICON' => '', 'FUNC_MENU' => '', 'CONTENT' => $this->errorMessage->render()));
+                               $content = $this->doc->moduleBody(array(), array_merge(array('REFRESH' => ''), $this->getButtons()), array('CSH' => '', 'TITLE' => '', 'FOLDER_INFO' => '', 'PAGE_ICON' => '', 'FUNC_MENU' => '', 'CONTENT' => $this->errorMessage->render()));
                        }
                        // Create output - no access (no warning though)
                        $this->content = $this->doc->render($GLOBALS['LANG']->getLL('files'), $content);
index 91a5349..7d16b8a 100644 (file)
@@ -214,7 +214,6 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                        'TITLE' => ''
                );
                $buttons = array(
-                       'level_up' => '',
                        'refresh' => '',
                        'title' => '',
                        'page_icon' => '',
@@ -230,7 +229,6 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                        if ($folderObject->getStorage()->isWithinFileMountBoundaries($folderObject)) {
                                // The icon with link
                                $otherMarkers['PAGE_ICON'] = IconUtility::getSpriteIcon($icon, array('title' => $title));
-                               $buttons['level_up'] = $this->linkWrapDir(IconUtility::getSpriteIcon('actions-view-go-up', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.upOneLevel', TRUE))), $folderObject);
                                // No HTML specialchars here - HTML like <strong> </strong> is allowed
                                $otherMarkers['TITLE'] .= GeneralUtility::removeXSS(GeneralUtility::fixed_lgd_cs($title, -($this->fixedL + 20)));
                        } else {
index aca3e59..d0c7713 100644 (file)
@@ -30,5 +30,5 @@
 <!-- ###BUTTON_GROUPS_LEFT### -->
 
 <!-- ###BUTTON_GROUPS_RIGHT### -->
-<!-- ###BUTTON_GROUP1### -->###REFRESH######LEVEL_UP######SHORTCUT###<!-- ###BUTTON_GROUP1### -->
+<!-- ###BUTTON_GROUP1### -->###REFRESH######SHORTCUT###<!-- ###BUTTON_GROUP1### -->
 <!-- ###BUTTON_GROUPS_RIGHT### -->