Display timestamp of latest bpn xml update in backend

This commit is contained in:
Björn Fromme
2020-07-14 17:37:48 +02:00
parent 900aa785c1
commit fe26ca7b2f
2 changed files with 11 additions and 1 deletions
@@ -91,7 +91,14 @@ class BackendController extends ActionController
}
public function indexAction()
{}
{
$updatedTimestampPath = GeneralUtility::getFileAbsFileName('fileadmin/xmlexport/.lastupdate');
if ($updatedTimestampPath && file_exists($updatedTimestampPath)) {
$updatedTimestamp = file_get_contents($updatedTimestampPath);
}
$this->view->assign('updatedTimestamp', $updatedTimestamp);
}
public function importProductsAction()
{
@@ -7,6 +7,9 @@
<f:section name="Main">
<h1>E&amp;P Funktionen</h1>
<f:flashMessages />
<p>
<strong>Letzter XML Abruf aus BusPro: {f:if(condition: updatedTimestamp, then: updatedTimestamp, else: '-')}</strong>
</p>
<p>
<f:link.action action="importProducts" class="btn btn-default">
<core:icon identifier="actions-refresh"/>