diff options
author | kondou <kondou@ts.unde.re> | 2014-03-12 15:20:51 +0100 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2014-03-12 15:20:51 +0100 |
commit | 547b5634646b0556462233f8cac37a41d63a44fb (patch) | |
tree | 1a3ed523663c786496e37dca5929c544b945e92e /settings/templates | |
parent | ce790119aea4a1cec2e8d8e8b493fec00b87693f (diff) | |
download | nextcloud-server-547b5634646b0556462233f8cac37a41d63a44fb.tar.gz nextcloud-server-547b5634646b0556462233f8cac37a41d63a44fb.zip |
Log last cron execution
Fixes #2012
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/admin.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 8f786ba76ef..a2775439cae 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -178,6 +178,23 @@ if (!$_['internetconnectionworking']) { <label for="backgroundjobs_cron">Cron</label><br/> <em><?php p($l->t("Use systems cron service to call the cron.php file every 15 minutes.")); ?></em> </p> + <?php if ($_['cron_log']): ?> + <p> + <?php if ($_['lastcron'] !== false): + $human_time = date('Y-m-d H:i', $_['lastcron']) . " UTC"; + if (time() - $_['lastcron'] <= 3600): ?> + <span class="cronstatus success"></span> + <?php p($l->t("Last cron was executed at %s.", array($human_time))); + else: ?> + <span class="cronstatus error"></span> + <?php p($l->t("Last cron was executed at %s. This is more than an hour ago, something seems wrong.", array($human_time))); + endif; + else: ?> + <span class="cronstatus error"></span> + <?php p($l->t("Cron was not executed yet!")); + endif; ?> + </p> + <?php endif; ?> </fieldset> <fieldset class="personalblock" id="shareAPI"> |