Skip to content

Commit

Permalink
Adding timing of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
guilbaults committed Jan 15, 2024
1 parent 5764326 commit 830f3bc
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions jobstats/templates/jobstats/job.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,23 @@ <h2>{% translate "Job dependencies" %}</h2>
<th scope="col">{% translate "Job" %}</th>
<th scope="col">{% translate "Status" %}</th>
<th scope="col">{% translate "Name" %}</th>
<th scope="col">{% translate "End time" %}</th>
<th scope="col">{% translate "Type" %}</th>
</tr>
</thead>
<tbody>
{% for dep in dependencies %}
<tr>
<td><a href="{{settings.BASE_URL}}secure/jobstats/{{username}}/{{dep.job.id_job}}">{{dep.job.id_job}}</a></td>
<td><p><span class="badge badge-{{job.status_badge}}">{{dep.job.status}}</span></p></td>
<td><p><span class="badge badge-{{dep.job.status_badge}}">{{dep.job.status}}</span></p></td>
<td>{{dep.job.job_name}}</td>
<td>
{% if dep.job.time_end_dt %}
<span data-toggle="tooltip" data-placement="top" title="{{dep.job.time_end_dt}}">{{dep.job.time_end_dt | default_if_none:'' | naturaltime}} <span data-feather="info"></span></span>
{% else %}
{% translate "Not finished" %}
{% endif %}
</td>
<td>{{dep.type}}</td>
</tr>
{% endfor %}
Expand All @@ -183,15 +191,23 @@ <h2>{% translate "Jobs that depend on this job" %}</h2>
<th scope="col">{% translate "Job" %}</th>
<th scope="col">{% translate "Status" %}</th>
<th scope="col">{% translate "Name" %}</th>
<th scope="col">{% translate "Start time" %}</th>
<th scope="col">{% translate "Type" %}</th>
</tr>
</thead>
<tbody>
{% for dep in depends_on_this %}
<tr>
<td><a href="{{settings.BASE_URL}}secure/jobstats/{{username}}/{{dep.job.id_job}}">{{dep.job.id_job}}</a></td>
<td><p><span class="badge badge-{{job.status_badge}}">{{dep.job.status}}</span></p></td>
<td><p><span class="badge badge-{{dep.job.status_badge}}">{{dep.job.status}}</span></p></td>
<td>{{dep.job.job_name}}</td>
<td>
{% if dep.job.time_start_dt %}
<span data-toggle="tooltip" data-placement="top" title="{{dep.job.time_start_dt}}">{{dep.job.time_start_dt | default_if_none:'' | naturaltime}} <span data-feather="info"></span></span>
{% else %}
{% translate "Not finished" %}
{% endif %}
</td>
<td>{{dep.type}}</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 830f3bc

Please sign in to comment.