fix(ui): section tabs above the breadcrumb, so the Ansible tab strip holds still (#5214)
The tabs were drawn in each page's content block, which base.html renders after the breadcrumb, so on every nested Ansible page the strip moved down a line. base.html now has a section_tabs block above the breadcrumb, and every Ansible page fills it. A guard in test_breadcrumbs.py fails any page that calls a tabs macro outside that block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
{% from "ansible/_macros.html" import interval_words %}
|
||||
{% block title %}{{ playbook_path }} — Steward{% endblock %}
|
||||
{% block breadcrumb %}{{ crumbs([("Ansible", "/ansible/"), ("Playbooks", "/ansible/playbooks"), (playbook_path, "")]) }}{% endblock %}
|
||||
{% block section_tabs %}{{ ansible_tabs("playbooks") }}{% endblock %}
|
||||
{% block content %}
|
||||
{% set can_run = session.user_role in ('operator', 'admin') %}
|
||||
{{ ansible_tabs("playbooks") }}
|
||||
{% call page_header(playbook_path) %}
|
||||
{% if editable and session.user_role == 'admin' %}
|
||||
<a href="/ansible/playbooks/edit/{{ source_name }}/{{ playbook_path }}" class="btn btn-sm btn-ghost">Edit</a>
|
||||
|
||||
Reference in New Issue
Block a user