]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add absolute time of last cronjob as hover tip
authorJakob Sack <mail@jakobsack.de>
Sat, 28 Feb 2015 20:48:19 +0000 (21:48 +0100)
committerJakob Sack <mail@jakobsack.de>
Sat, 28 Feb 2015 20:48:19 +0000 (21:48 +0100)
settings/js/admin.js
settings/templates/admin.php

index face18beef030086b162164c32fe0dfd89c1958d..34bc246604889fbf349c4b71620b59d9be3f5feb 100644 (file)
@@ -39,6 +39,8 @@ $(document).ready(function(){
                } );
        });
 
+       $('#backgroundjobs span.crondate').tipsy({fade: true, gravity: 's', live: true});
+
        $('#backgroundjobs input').change(function(){
                if($(this).attr('checked')){
                        var mode = $(this).val();
index 1de1e2851b76380025bd33e9d657ed7ba4fbf701..7ed1afbd26e57671208213797ebe4c17f7b43e95 100644 (file)
@@ -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!"));