Skip to content
Snippets Groups Projects
Commit e60b664b authored by Felix Kopp's avatar Felix Kopp Committed by Tolleiv Nietsch
Browse files

[FEATURE] Show History csh and spacer

Remove excessive spacer before content on Record History change log.
Remove the duplicated Help icon underneath content with identical content.
Another icon is already added within function menu with identical csh content.

Also delivers changes to conform with of CGL for better metrics.

Change-Id: Ic3f2d2fbeb1651aa25fe550d1a58aa25367e0dd0
Resolves: #33827
Releases: 4.7
Reviewed-on: http://review.typo3.org/8949
Reviewed-by: Markus Klein
Reviewed-by: Philipp Gampe
Reviewed-by: Thorsten Kahler
Tested-by: Thorsten Kahler
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
parent 8aeb14a2
Branches
Tags
No related merge requests found
This diff is collapsed.
......@@ -33,21 +33,12 @@
* @author Kasper Skårhøj <kasperYYYY@typo3.com>
*/
$BACK_PATH='';
require ($BACK_PATH.'init.php');
require ($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:lang/locallang_show_rechis.xml');
require_once ('class.show_rechis.inc');
/**
* Script Class for showing the history module of TYPO3s backend
*
......@@ -81,8 +72,7 @@ class SC_show_rechis {
$this->doc->setModuleTemplate('templates/show_rechis.html');
// Start the page header:
$this->content.=$this->doc->header($GLOBALS['LANG']->getLL('title'));
$this->content.=$this->doc->spacer(5);
$this->content .= $this->doc->header($GLOBALS['LANG']->getLL('title'));
}
/**
......@@ -105,7 +95,7 @@ class SC_show_rechis {
// Build the <body> for the module
$this->content = $this->doc->startPage($GLOBALS['LANG']->getLL('title'));
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
$this->content .= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
}
/**
......@@ -114,8 +104,7 @@ class SC_show_rechis {
* @return void
*/
function printContent() {
$this->content.=$this->doc->spacer(8);
$this->content.= $this->doc->endPage();
$this->content .= $this->doc->endPage();
$this->content = $this->doc->insertStylesAndJS($this->content);
echo $this->content;
}
......@@ -138,20 +127,17 @@ class SC_show_rechis {
$historyObj = t3lib_div::makeInstance('recordHistory');
if ($historyObj->returnUrl) {
$buttons['back']= '<a href="' . htmlspecialchars($historyObj->returnUrl) . '" class="typo3-goBack">' . t3lib_iconWorks::getSpriteIcon('actions-view-go-back') . '</a>';
$buttons['back'] = '<a href="' . htmlspecialchars($historyObj->returnUrl) . '" class="typo3-goBack">' . t3lib_iconWorks::getSpriteIcon('actions-view-go-back') . '</a>';
}
return $buttons;
}
}
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/show_rechis.php'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']);
}
// Make instance:
$SOBE = t3lib_div::makeInstance('SC_show_rechis');
$SOBE->init();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment