Update data/templates/dashboard.html

This commit is contained in:
2026-05-25 02:05:00 +00:00
parent 266abd4fa2
commit cca8979754
+19 -2
View File
@@ -1,5 +1,23 @@
{% extends "base.html" %}
{% macro render_nested(value) %}
{% if value is mapping %}
{% for k, v in value.items() %}
<div class="nested-item">
<span class="nested-key">{{ k }}:</span>
<span class="nested-value">{{ render_nested(v) }}</span>
</div>
{% endfor %}
{% elif value is iterable and not value is string %}
{% for item in value %}
{{ render_nested(item) }}
{% endfor %}
{% else %}
{{ value }}
{% endif %}
{% endmacro %}
{% block content %}
<div class="dashboard-container">
<h1>{{ title }}</h1>
@@ -57,7 +75,7 @@
{% elif key == 'Flag' %}
<span class="badge badge-{{ 'none' if value == 'None' else 'flag' }}">{{ value }}</span>
{% else %}
{{ value }}
{{ render_nested(value) }}
{% endif %}
</td>
{% endfor %}
@@ -68,7 +86,6 @@
</div>
{# ── Pagination ─────────────────────────────────────────── #}
{# Build filter params string only for values that are set #}
{% set filter_qs %}{% if recon_job_name %}&recon_job_name={{ recon_job_name }}{% endif %}{% if as_at_date %}&as_at_date={{ as_at_date }}{% endif %}{% endset %}
<div class="pagination">
{% if prev_cursor %}