From 09ec6e8a855baef849f14e3d46248c10a68e472d Mon Sep 17 00:00:00 2001
From: Felix Kopp <felix-source@phorax.com>
Date: Sat, 6 Jul 2013 18:27:39 +0200
Subject: [PATCH] [TASK] Remove <table> in lowlevel configuration

EXT: lowlevel brings a tree view to display configurations.
This configuration has been wrapped into a <table> tag in
order to prohibit wrapping of long lines.

Removes <table> tag and brings nowrap replacement.
Also moves headline to pole position.

Change-Id: I0358c90cd890101e5e8f7b8d4056d4e8a571d8ee
Resolves: #49743
Releases: 6.2
Reviewed-on: https://review.typo3.org/22042
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Max Roesch
Tested-by: Max Roesch
Reviewed-by: Markus Klein
Tested-by: Markus Klein
---
 .../lowlevel/Classes/View/ConfigurationView.php  | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/typo3/sysext/lowlevel/Classes/View/ConfigurationView.php b/typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
index a673562329d3..cef3beb05c9c 100644
--- a/typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
+++ b/typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
@@ -140,7 +140,11 @@ class ConfigurationView {
 	 */
 	public function main() {
 		$arrayBrowser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Lowlevel\\Utility\\ArrayBrowser');
+		$label = $this->MOD_MENU['function'][$this->MOD_SETTINGS['function']];
+
 		$this->content = $this->doc->header($GLOBALS['LANG']->getLL('configuration', TRUE));
+		$this->content .= '<h2>' . $label . '</h2>';
+
 		$this->content .= '<div id="lowlevel-config">
 						<label for="search_field">' . $GLOBALS['LANG']->getLL('enterSearchPhrase', TRUE) . '</label>
 						<input type="text" id="search_field" name="search_field" value="' . htmlspecialchars($search_field) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . ' />
@@ -228,7 +232,6 @@ class ConfigurationView {
 			$theVar['SYS']['encryptionKey'] = '***** (length: ' . strlen($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']) . ' characters)';
 		}
 		$tree = $arrayBrowser->tree($theVar, '', '');
-		$label = $this->MOD_MENU['function'][$this->MOD_SETTINGS['function']];
 		$this->content .= $this->doc->sectionEnd();
 		// Variable name:
 		if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('varname')) {
@@ -283,15 +286,8 @@ class ConfigurationView {
 				$this->content .= $GLOBALS['LANG']->getLL('copyPaste', TRUE) . LF . '</div>';
 			}
 		}
-		$this->content .= '<br /><table border="0" cellpadding="0" cellspacing="0" class="t3-tree t3-tree-config">';
-		$this->content .= '<tr>
-					<th class="t3-row-header t3-tree-config-header">' . $label . '</th>
-				</tr>
-				<tr>
-					<td>' . $tree . '</td>
-				</tr>
-			</table>
-		';
+		$this->content .= '<div class="nowrap">' . $tree . '</div>';
+
 		// Setting up the buttons and markers for docheader
 		$docHeaderButtons = $this->getButtons();
 		$markers = array(
-- 
GitLab