Commit cd8bb578f73d0362576746fe0182b1f847e9f70b
1 parent
767c83b1
KTS-2414
"Implement a dashlet for the scheduler" Updated. When no jobs have been run, it says they were last run 1974 weeks ago... Changed this! Committed by: Conrad Vermeulen Reviewed by: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7534 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
1 deletions
templates/ktcore/dashlets/scheduler.smarty
| @@ -8,11 +8,13 @@ | @@ -8,11 +8,13 @@ | ||
| 8 | <span><a href="{$sAdmin}">Administration page</a></span> | 8 | <span><a href="{$sAdmin}">Administration page</a></span> |
| 9 | 9 | ||
| 10 | <p> | 10 | <p> |
| 11 | +{if !$lasttime} | ||
| 11 | {if $isDue} | 12 | {if $isDue} |
| 12 | <span class="">{i18n arg_time=$timedif}The tasks were scheduled to be run #time# ago.{/i18n}</span> | 13 | <span class="">{i18n arg_time=$timedif}The tasks were scheduled to be run #time# ago.{/i18n}</span> |
| 13 | {else} | 14 | {else} |
| 14 | <span class="">{i18n arg_time=$timedif}The tasks are scheduled to be run in #time#.{/i18n}</span> | 15 | <span class="">{i18n arg_time=$timedif}The tasks are scheduled to be run in #time#.{/i18n}</span> |
| 15 | {/if} | 16 | {/if} |
| 17 | +{/if} | ||
| 16 | </p> | 18 | </p> |
| 17 | 19 | ||
| 18 | 20 | ||
| @@ -42,7 +44,7 @@ | @@ -42,7 +44,7 @@ | ||
| 42 | {i18n}Please ensure that the scheduler is listed in your cron jobs. The line to be added to the crontab to implement the cron job is: {/i18n} | 44 | {i18n}Please ensure that the scheduler is listed in your cron jobs. The line to be added to the crontab to implement the cron job is: {/i18n} |
| 43 | <ul><li>*/5 * * * * {$sPath} > /dev/null</li></ul> | 45 | <ul><li>*/5 * * * * {$sPath} > /dev/null</li></ul> |
| 44 | </p> | 46 | </p> |
| 45 | - | 47 | + |
| 46 | <p> | 48 | <p> |
| 47 | <strong><span onclick="{$onClick}"> | 49 | <strong><span onclick="{$onClick}"> |
| 48 | <img id="scheduler_icon" src="{$sImg}"/> | 50 | <img id="scheduler_icon" src="{$sImg}"/> |