Project

General

Profile

Bug #25202 » 20130912_extensionmanager_lastUpdated_alldownloadcounter.patch

Martin Voss, 2013-09-12 16:59

View differences:

typo3/sysext/extensionmanager/Classes/Controller/ListController.php
$extensions = $this->extensionRepository->findAll();
}
$availableAndInstalledExtensions = $this->listUtility->getAvailableAndInstalledExtensionsWithAdditionalInformation();
$availableAndInstalledExtensions = $this->listUtility->enrichExtensionsWithEmConfAndTerInformation($availableAndInstalledExtensions);
$this->view->assign('extensions', $extensions)
->assign('search', $search)
->assign('availableAndInstalled', $availableAndInstalledExtensions);
typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php
$extensions[$extensionKey]['terObject'] = $terObject;
$extensions[$extensionKey]['updateAvailable'] = $this->installUtility->isUpdateAvailable($terObject);
$extensions[$extensionKey]['updateToVersion'] = $this->extensionRepository->findHighestAvailableVersion($extensionKey);
$extensions[$extensionKey]['lastUpdated'] = $terObject->getLastUpdated();
$extensions[$extensionKey]['alldownloadcounter'] = $terObject->getAlldownloadcounter();
}
} else {
unset($extensions[$extensionKey]);
typo3/sysext/extensionmanager/Resources/Private/Language/locallang.xlf
<trans-unit id="extensionList.header.author" xml:space="preserve">
<source>Author</source>
</trans-unit>
<trans-unit id="extensionList.header.alldownloadcounter" xml:space="preserve">
<source>Downloads</source>
</trans-unit>
<trans-unit id="searchTemplate.searchExtensions" xml:space="preserve">
<source>Search extensions</source>
</trans-unit>
typo3/sysext/extensionmanager/Resources/Private/Partials/List/TerSingleLine.html
<td class="state {extension.stateString}">
{extension.stateString}
</td>
<td class="lastUpdated">
<f:format.date>{extension.lastUpdated}</f:format.date>
</td>
<td class="alldownloadcounter">
{extension.alldownloadcounter}
</td>
typo3/sysext/extensionmanager/Resources/Private/Partials/List/TerTable.html
<th><f:translate key="extensionList.header.version"/></th>
<th><f:translate key="extensionList.header.description"/></th>
<th><f:translate key="extensionList.header.extensionState"/></th>
<th><f:translate key="extensionList.header.lastUpdate"/></th>
<th><f:translate key="extensionList.header.alldownloadcounter"/></th>
</tr>
</thead>
<tbody>
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
<th><f:translate key="extensionList.header.extensionVersion"/></th>
<th><f:translate key="extensionList.header.extensionActions"/></th>
<th><f:translate key="extensionList.header.extensionState"/></th>
<th><f:translate key="extensionList.header.lastUpdate"/></th>
<th><f:translate key="extensionList.header.alldownloadcounter"/></th>
</tr>
</thead>
<tbody>
......
<td class="state {extension.state}">
{extension.state}
</td>
<td class="lastUpdated">
<f:format.date>{extension.lastUpdated}</f:format.date>
</td>
<td class="alldownloadcounter">
{extension.alldownloadcounter}
</td>
</tr>
</f:for>
</tbody>
(1-1/3)