Browse Source
Use tooltip for background job execution time
pull/386/head
Morris Jobke
10 years ago
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with
3 additions and
3 deletions
-
settings/js/admin.js
-
settings/templates/admin.php
|
|
|
@ -35,7 +35,7 @@ $(document).ready(function(){ |
|
|
|
} ); |
|
|
|
}); |
|
|
|
|
|
|
|
$('#backgroundjobs span.crondate').tipsy({gravity: 's', live: true}); |
|
|
|
$('#backgroundjobs span.crondate').tooltip({placement: 'top'}); |
|
|
|
|
|
|
|
$('#backgroundjobs input').change(function(){ |
|
|
|
if($(this).is(':checked')){ |
|
|
|
|
|
|
|
@ -290,12 +290,12 @@ if ($_['cronErrors']) { |
|
|
|
$absolute_time = OC_Util::formatDate($_['lastcron']); |
|
|
|
if (time() - $_['lastcron'] <= 3600): ?>
|
|
|
|
<span class="status success"></span> |
|
|
|
<span class="crondate" original-title="<?php p($absolute_time);?>"> |
|
|
|
<span class="crondate" title="<?php p($absolute_time);?>"> |
|
|
|
<?php p($l->t("Last cron job execution: %s.", [$relative_time]));?>
|
|
|
|
</span> |
|
|
|
<?php else: ?>
|
|
|
|
<span class="status error"></span> |
|
|
|
<span class="crondate" original-title="<?php p($absolute_time);?>"> |
|
|
|
<span class="crondate" title="<?php p($absolute_time);?>"> |
|
|
|
<?php p($l->t("Last cron job execution: %s. Something seems wrong.", [$relative_time]));?>
|
|
|
|
</span> |
|
|
|
<?php endif; |
|
|
|
|