Browse Source

Added expired runs to overview

main
Jeroen De Meerleer 2 years ago
parent
commit
6a505f9f20
3 changed files with 6 additions and 2 deletions
  1. +3
    -0
      css/site.css
  2. +1
    -0
      overview.php
  3. +2
    -2
      templates/overview.html.twig

+ 3
- 0
css/site.css View File

@ -0,0 +1,3 @@
tr.norun td {
color: #c00000;
}

+ 1
- 0
overview.php View File

@ -62,6 +62,7 @@ foreach($allJobsResult as $key=>$value) {
$allJobsRendered[$count]["name"] = $value["name"];
$allJobsRendered[$count]["host"] = $value["host"];
$allJobsRendered[$count]["nextrun"] = date("d/m/Y H:i:s", $value["nextrun"]);
$allJobsRendered[$count]["norun"] = ($value['nextrun'] > $value['lastrun'] && $value['lastrun'] > 0) ? true : false;
$allJobsRendered[$count]["delay"] = secondsToInterval($value["delay"]);
$count++;


+ 2
- 2
templates/overview.html.twig View File

@ -17,7 +17,7 @@
<th></th>
</tr>
{% for job in jobs %}
<tr>
<tr{% if(job.norun == true) %} class="norun"{% endif %}>
<td>{{ job.name }}</td>
<td>{{ job.host }}</td>
<td>{{ job.delay }}</td>
@ -49,4 +49,4 @@
<div id='ajax_loader' style="position: fixed; left: 50%; top: 50%; display: none;">
<img src="/images/ajax-loader.gif" alt="loading">
</div>
{% endblock %}
{% endblock %}

Loading…
Cancel
Save