Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
0efed5c2
Commit
0efed5c2
authored
10 years ago
by
Jakob Sack
Browse files
Options
Downloads
Patches
Plain Diff
Add absolute time of last cronjob as hover tip
parent
6e906fc4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
settings/js/admin.js
+2
-0
2 additions, 0 deletions
settings/js/admin.js
settings/templates/admin.php
+9
-4
9 additions, 4 deletions
settings/templates/admin.php
with
11 additions
and
4 deletions
settings/js/admin.js
+
2
−
0
View file @
0efed5c2
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
settings/templates/admin.php
+
9
−
4
View file @
0efed5c2
...
...
@@ -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!"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment