Skip to content

Commit 4c355ce

Browse files
cassimonslgruen
andauthored
Add quick links to job types in batch (#272)
* Add quick links to job types in batch * consistency * cleanup * Update batch/batch/front_end/templates/batch.html Co-authored-by: Leonhard Gruenschloss <[email protected]> --------- Co-authored-by: Cas Simons <[email protected]> Co-authored-by: Leonhard Gruenschloss <[email protected]>
1 parent 39116b8 commit 4c355ce

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

batch/batch/front_end/templates/batch.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ <h2>Properties</h2>
1515
<li>Time Completed: {% if 'time_completed' in batch and batch['time_completed'] is not none %}{{ batch['time_completed'] }}{% endif %}</li>
1616
<li>Total Jobs: {{ batch['n_jobs'] }}</li>
1717
<ul>
18-
<li>Pending Jobs: {{ batch['n_jobs'] - batch['n_completed'] }}</li>
19-
<li>Succeeded Jobs: {{ batch['n_succeeded'] }}</li>
20-
<li>Failed Jobs: {{ batch['n_failed'] }}</li>
21-
<li>Cancelled Jobs: {{ batch['n_cancelled'] }}</li>
18+
<li><a href="{{ base_path }}/batches/{{ batch['id'] }}?q=pending">Pending</a>
19+
+ <a href="{{ base_path }}/batches/{{ batch['id'] }}?q=running">Running</a> Jobs: {{ batch['n_jobs'] - batch['n_completed'] }}</li>
20+
<li><a href="{{ base_path }}/batches/{{ batch['id'] }}?q=success">Succeeded</a> Jobs: {{ batch['n_succeeded'] }}</li>
21+
<li><a href="{{ base_path }}/batches/{{ batch['id'] }}?q=failed">Failed</a> Jobs: {{ batch['n_failed'] }}</li>
22+
<li><a href="{{ base_path }}/batches/{{ batch['id'] }}?q=cancelled">Cancelled</a> Jobs: {{ batch['n_cancelled'] }}</li>
2223
</ul>
2324
<li>Duration: {% if 'duration' in batch and batch['duration'] is not none %}{{ batch['duration'] }}{% endif %}</li>
2425
<li>Cost: {% if 'cost' in batch and batch['cost'] is not none %}{{ batch['cost'] }}{% endif %}</li>

0 commit comments

Comments
 (0)