Commit ef91390f authored by disappearer's avatar disappearer

Many changes in output, some refactoring, see changelog


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/trunk@2455 735d13b6-9817-0410-8766-e36946ffe9aa
parent f760549d
13.03.2006 Michael Scharkow <michael@underused.org>
* more refactoring
* complete overhaul of all output (thanks to Ingo Renner and Joey Hasenau)
* info and detail view merged
* stdSelection for all queries (no obsolete, testing and documentation)
* added simple upload comment changelog in single view
12.03.2006 Michael Scharkow <michael@underused.org>
* refactoring of pi1, compact lists use a common function now
* added state and last update in compact lists
......
......@@ -185,6 +185,7 @@ class tx_terfe_common {
$extensionRecord[$key] = unserialize ($value);
break;
case 'lastuploaddate':
$extensionRecord['lastuploaddate_raw'] = $value;
$extensionRecord[$key] = strftime($this->getLL('general_dateandtimeformat'), $value);
break;
case 'versiondownloadcounter':
......@@ -499,27 +500,22 @@ class tx_terfe_common {
$colorStyle = $extensionIsAvailable ? '' : 'color:red;';
if (!$extensionIsAvailable) $someExtensionsAreNotAvailable = TRUE;
$tableRows[] = '
<tr>
<td class="td-sub" style="'.$colorStyle.'">'.$this->getLL('extension_dependencies_kind_'.$dependencyArr['kind'],'',1).'</td>
<td class="td-sub" style="'.$colorStyle.'">'.$this->csConvHSC ($dependencyArr['extensionKey']).'</td>
<td class="td-sub" style="'.$colorStyle.'">'.$dependencyArr['versionRange'].'</td>
</tr>
<li>'.$this->getLL('extension_dependencies_kind_'.$dependencyArr['kind'],'',1).' '.$this->csConvHSC ($dependencyArr['extensionKey']).' '
.$dependencyArr['versionRange'].'</li>
';
}
}
if ($someExtensionsAreNotAvailable) {
$tableRows[] = '
<tr>
<td class="td-sub" style="color:red" colspan="3">'.$this->getLL('extension_dependencies_someextensionsarenotavailable','',1).'</td>
</tr>
<li style="color:red">'.$this->getLL('extension_dependencies_someextensionsarenotavailable','',1).'</li>
';
}
$output = '
<table>
<ul>
'.implode ('', $tableRows).'
</table>
</ul>
';
}
return $output;
......@@ -559,15 +555,15 @@ class tx_terfe_common {
}
foreach ($dependingExtensionKeysArr as $key => $versionsArr) {
$tableRows[] = '<tr><td class="td-sub">'.$this->csConvHSC($key).'</td><td class="td-sub">'.implode (', ', $versionsArr).'</td></tr>';
$tableRows[] = '<li>'.$this->csConvHSC($key).' '.implode (', ', $versionsArr).'</li>';
}
if (count ($tableRows)) {
$output = '
'.$this->getLL('extension_reversedependencies_intro','',1).'
<table>
$output =
'<p>'.$this->getLL('extension_reversedependencies_intro','',1).'</p>
<ul>
'.implode ('', $tableRows).'
</table>
</ul>
';
}
}
......@@ -602,11 +598,11 @@ class tx_terfe_common {
}
$tableRows[] = '
<tr>
<td nowrap="nowrap">'.$this->csConvHSC ($fileName).'</td>
<td nowrap="nowrap">'.t3lib_div::formatSize($fileArr['size']).'</td>
<td nowrap="nowrap">'.$viewLink.'</td>
<td nowrap="nowrap">'.strftime($this->getLL('general_dateandtimeformat'), $fileArr['mtime']).'</td>
<td nowrap="nowrap">'.$downloadLink.'</td>
<td class="filename">'.$this->csConvHSC ($fileName).'</td>
<td>'.t3lib_div::formatSize($fileArr['size']).'</td>
<td>'.$viewLink.'</td>
<td">'.strftime($this->getLL('general_dateandtimeformat'), $fileArr['mtime']).'</td>
<td">'.$downloadLink.'</td>
</tr>
';
}
......@@ -626,13 +622,13 @@ class tx_terfe_common {
}
$output ='
<table>
<table class="filelist">
<tr><th>Filename</th><th>Size</th><th>View</th><th>Date</th><th>Download</th></tr>
'.implode ('', $tableRows).'
</table>
<br /><br />
<p><a href="'.$t3xDownloadURL.'">'.$this->getLL('extensionfiles_downloadcompressedt3x','',1).'</a></p>
<br />
'.$filePreview.'
</li>
<li>
'.$filePreview.'</li>
';
}
......
......@@ -21,6 +21,7 @@
<label index="extension_reviewstate"></label>
<label index="extension_reviewstate_0"></label>
<label index="extension_reviewstate_1"></label>
<label index="extension_rating"></label>
<label index="extension_extensionkey"></label>
<label index="extension_title"></label>
<label index="extension_version"></label>
......@@ -49,6 +50,8 @@
<label index="extension_ownerusername"></label>
<label index="extension_uploadcomment"></label>
<label index="extension_lastuploaddate"></label>
<label index="extension_history"></label>
<label index="extension_download_extension"></label>
<label index="extension_files"></label>
<label index="extension_filepreview"></label>
<label index="extension_documentation"></label>
......@@ -73,6 +76,7 @@
<label index="extension_reviewstate_-1">Failed a security check!</label>
<label index="extension_reviewstate_0">Not reviewed!</label>
<label index="extension_reviewstate_1">Passed a basic security check</label>
<label index="extension_rating">Rating</label>
<label index="extension_extensionkey">Extension key</label>
<label index="extension_title">Title</label>
<label index="extension_version">Version</label>
......@@ -101,6 +105,8 @@
<label index="extension_ownerusername">Owner</label>
<label index="extension_uploadcomment">Upload comment</label>
<label index="extension_lastuploaddate">Updated</label>
<label index="extension_history">Version history</label>
<label index="extension_download_extension">Download extension</label>
<label index="extension_files">Files</label>
<label index="extension_filepreview">Preview for file %s</label>
<label index="extension_documentation">Manual</label>
......
This diff is collapsed.
Markdown is supported
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