Index: typo3/sysext/lang/locallang_core.xml =================================================================== --- typo3/sysext/lang/locallang_core.xml (revision 7895) +++ typo3/sysext/lang/locallang_core.xml (working copy) @@ -105,11 +105,16 @@ + + + + + Index: typo3/sysext/t3skin/stylesheets/structure/module_web_list.css =================================================================== --- typo3/sysext/t3skin/stylesheets/structure/module_web_list.css (revision 7895) +++ typo3/sysext/t3skin/stylesheets/structure/module_web_list.css (working copy) @@ -126,6 +126,7 @@ table#typo3-versionSelector { margin-bottom: 5px; margin-top: 5px; + padding: 5px; } table#typo3-versionSelector td { Index: typo3/sysext/t3skin/stylesheets/visual/element_version.css =================================================================== --- typo3/sysext/t3skin/stylesheets/visual/element_version.css (revision 7895) +++ typo3/sysext/t3skin/stylesheets/visual/element_version.css (working copy) @@ -10,9 +10,7 @@ table#typo3-versionSelector { background-color: #ffec97; - /*background-image: url('../../icons/gfx/alt_menu_mainitem_bg.gif'); - background-repeat: repeat-x; - border: 1px solid #a2aab8;*/ + border: 1px solid #a2aab8; } .ver-element, Index: typo3/template.php =================================================================== --- typo3/template.php (revision 7895) +++ typo3/template.php (working copy) @@ -1833,29 +1833,42 @@ // If more than one was found...: if (count($versions)>1) { + $selectorLabel = '' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.selectLabel') . ''; // Create selector box entries: $opt = array(); foreach($versions as $vRow) { - $opt[] = ''; + if ($vRow['uid'] == $onlineId) { + //Live version + $label = '[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.live') . ']'; + } else { + $label = $vRow['t3ver_label'] . ' (ID: ' . $vRow['t3ver_id'] . + ($vRow['t3ver_wsid'] != 0 ? ' Workspace-Id: ' . $vRow['t3ver_wsid'] : '') . ')'; + } + + $opt[] = ''; } // Add management link: - $opt[] = ''; - $opt[] = ''; - + $management = ''; // Create onchange handler: $onChange = "window.location.href=this.options[this.selectedIndex].value;"; // Controls: - if ($id==$onlineId) { - $controls = 'backPath,'gfx/blinkarrow_left.gif','width="5" height="9"').' class="absmiddle" alt="" /> '.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.online',1).''; + if ($id == $onlineId) { + $controls .= 'backPath, 'gfx/blinkarrow_left.gif','width="5" height="9"') . + ' class="absmiddle" alt="" /> ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.online', 1) . + ''; } elseif (!$noAction) { - $controls = ''. - 'backPath,'gfx/insert1.gif','width="14" height="14"').' style="margin-right: 2px;" class="absmiddle" alt="" title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.swapPage',1).'" />'. - ''.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.swap',1).''; + $controls .= '' . t3lib_iconWorks::getSpriteIcon('actions-version-swap-version', array( + 'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.swapPage', 1), + 'style' => 'margin-left:5px;vertical-align:bottom;' + )) . '' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.swap',1) . ''; } // Write out HTML code: @@ -1866,12 +1879,13 @@ --> - + - + +
'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.selVer',1).'' . $selectorLabel . ' '.$controls.'' . $controls . '' . $management . '
'; @@ -1899,8 +1913,9 @@ --> - - + + +
Workspace: "'.htmlspecialchars($wsTitle).'"Inside branch, no further versioning possible' . $selectorLabel . 'Workspace: "' . htmlspecialchars($wsTitle) . '"' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.inBranch', 1) . '
'; @@ -1927,9 +1942,10 @@ --> - + + +
Workspace: "'.htmlspecialchars($wsTitle).'"' . $selectorLabel . 'Workspace: "' . htmlspecialchars($wsTitle) . '" -
'; @@ -1942,8 +1958,9 @@ --> - - + + +
Workspace: "'.htmlspecialchars($wsTitle).'"Versions found on page, no "Page" versioning possible' . $selectorLabel . 'Workspace: "' . htmlspecialchars($wsTitle) . '"' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.versionsFound', 1) . '
'; @@ -1960,9 +1977,11 @@ --> - + + +
Workspace: "'.htmlspecialchars($wsTitle).'"' . $selectorLabel . 'Workspace: "' . htmlspecialchars($wsTitle) . '" -
';