diff options
author | Jakob Sack <mail@jakobsack.de> | 2015-02-28 21:48:19 +0100 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2015-02-28 21:48:19 +0100 |
commit | 0efed5c216315e9feae45f3193c510d9007f682a (patch) | |
tree | 795d7c9d659f77664a8b0bfa4bf895c8120c9a9c /settings/templates | |
parent | 6e906fc4d4ea9ae09d2223077760f6efba2b2875 (diff) | |
download | nextcloud-server-0efed5c216315e9feae45f3193c510d9007f682a.tar.gz nextcloud-server-0efed5c216315e9feae45f3193c510d9007f682a.zip |
Add absolute time of last cronjob as hover tip
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/admin.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 1de1e2851b7..7ed1afbd26e 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -237,13 +237,18 @@ if ($_['suggestedOverwriteCliUrl']) { <p class="cronlog inlineblock"> <?php if ($_['lastcron'] !== false): $human_time = relative_modified_date($_['lastcron']); + $absolute_time = OC_Util::formatDate($_['lastcron']); if (time() - $_['lastcron'] <= 3600): ?> <span class="cronstatus success"></span> - <?php p($l->t("Last cron was executed %s.", array($human_time))); - else: ?> + <span class="crondate" original-title="<?php p($absolute_time);?>"> + <?php p($l->t("Last cron was executed %s.", array($human_time)));?> + </span> + <?php else: ?> <span class="cronstatus error"></span> - <?php p($l->t("Last cron was executed %s. Something seems wrong.", array($human_time))); - endif; + <span class="crondate" original-title="<?php p($absolute_time);?>"> + <?php p($l->t("Last cron was executed %s. Something seems wrong.", array($human_time)));?> + </span> + <?php endif; else: ?> <span class="cronstatus error"></span> <?php p($l->t("Cron was not executed yet!")); |