feat(ansible): one strip of tabs, a run list that opens on its verdict, a run page in one line (#5328, #5329, #5330)
- section_tabs macro; Runs · Playbooks · Schedules · Inventory on every Ansible page, replacing each page's own set of header buttons. - Runs: a verdict line (last 30 days, failures first with the latest named, running now, the schedule due next); under each status what the run did across its hosts (ansible/recap.py); a filter bar (playbook, status, who started it) that swaps the table and carries into the scroll paging. - Run page: status, duration, start and who started it in one line; each host's result in words, worst first; the playbook it ran links to it; the log and failures on classes rather than inline colours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -73,6 +73,17 @@
|
||||
</div>
|
||||
{%- endmacro %}
|
||||
|
||||
{# A section's own pages as tabs under the crumbs (#5328): items are
|
||||
(key, label, href); the one whose key is `active` is the current page.
|
||||
Links, not a tablist: each tab is its own page. #}
|
||||
{% macro section_tabs(items, active, label) -%}
|
||||
<nav class="section-tabs" aria-label="{{ label }}">
|
||||
{%- for key, text, href in items %}
|
||||
<a href="{{ href }}"{% if key == active %} aria-current="page"{% endif %}>{{ text }}</a>
|
||||
{%- endfor %}
|
||||
</nav>
|
||||
{%- endmacro %}
|
||||
|
||||
{# A button that shows only an icon. The label is required: it is the button's
|
||||
accessible name and its tooltip, and rendering one without it raises. #}
|
||||
{% macro icon_button(icon, label, href=none, cls="btn-ghost") -%}
|
||||
|
||||
Reference in New Issue
Block a user