Follow up to #11724: Fixed indentation of localized records
authorIngo Renner <ingo.renner@typo3.org>
Fri, 14 Aug 2009 22:21:32 +0000 (22:21 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Fri, 14 Aug 2009 22:21:32 +0000 (22:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5791 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/class.db_list_extra.inc
typo3/stylesheet.css

index bd575ea..eec29e7 100644 (file)
@@ -668,6 +668,13 @@ class localRecordList extends recordList {
                                                        '</a>';
                                        }
                                        $theData[$fCol] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row);
+
+                                       $localizationMarkerClass = '';
+                                       if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])
+                                       && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0) {
+                                                       // it's a translated record
+                                               $localizationMarkerClass = ' localization';
+                                       }
                                } elseif ($fCol == 'pid') {
                                        $theData[$fCol]=$row[$fCol];
                                } elseif ($fCol == '_PATH_') {
@@ -703,7 +710,7 @@ class localRecordList extends recordList {
                        }
 
                        // Add classes to table cells
-                       $this->addElement_tdCssClass[$titleCol]         = 'col-title';
+                       $this->addElement_tdCssClass[$titleCol]         = 'col-title' . $localizationMarkerClass;
                        if (!$this->dontShowClipControlPanels) {
                                $this->addElement_tdCssClass['_CONTROL_']       = 'col-control';
                                $this->addElement_tdCssClass['_AFTERCONTROL_']  = 'col-control-space';
index 0087e1e..eba3a37 100644 (file)
@@ -1872,6 +1872,10 @@ table.typo3-dblist tr td.col-title {
        vertical-align: middle;
 }
 
+table.typo3-dblist tr td.col-title.localization {
+       padding-left: 18px;
+}
+
 table.typo3-dblist tr.c-headLine td.col-title a {
        width: 240px;
        display: block;