Add job detail template with execution history and metrics display
- Created a new job_detail.html template extending base.html - Implemented a macro for rendering nested data structures - Added sections for job identification, schedule & timing, status, configuration, execution history, and results - Included a timeline for execution history with visual indicators for job status - Displayed job metrics including total executions, success rate, and average duration - Handled cases for displaying results or indicating absence of results based on job status
This commit is contained in:
@@ -55,20 +55,24 @@
|
||||
})();
|
||||
</script>
|
||||
|
||||
{% if results | length > 0 %}
|
||||
{% if result_rows | length > 0 %}
|
||||
<div class="table-scroll">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
{% for key in results[0].keys() %}
|
||||
<th>Job</th>
|
||||
{% for key in result_rows[0].data.keys() %}
|
||||
<th>{{ key }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in results %}
|
||||
{% for row in result_rows %}
|
||||
<tr>
|
||||
{% for key, value in row.items() %}
|
||||
<td>
|
||||
<a class="job-link" href="/jobs/{{ row.job_id }}">{{ row.name }}<span class="muted"> #{{ row.job_id }}</span></a>
|
||||
</td>
|
||||
{% for key, value in row.data.items() %}
|
||||
<td>
|
||||
{% if key == 'Status' %}
|
||||
<span class="badge badge-{{ value | lower }}">{{ value }}</span>
|
||||
|
||||
Reference in New Issue
Block a user