feat(ansible): schedules read as sentences, each with its own page (#5332)
- The Schedules tab: a verdict line (failing first, paused, next due), each schedule as one line (what runs where, how often, when next, how it last went); the row opens its page; Run now and Pause stay in the row. - /ansible/schedules/new and /ansible/schedules/<id>: the form on classes, dry run beside the button, the playbook's variables rendered with the page; at the foot Delete behind the confirm dialog. ?source=&playbook= start a new one on a playbook (Schedule it on the playbook's page). - A run started by a schedule links to that schedule's page. - The run page's id guard allows the Run again link's ?from=. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,13 +40,13 @@
|
||||
<section class="card-flush" aria-labelledby="pb-schedules">
|
||||
<h2 id="pb-schedules" class="table-caption">Schedules
|
||||
{%- if schedules %} <span class="tone-muted">{{ schedules|length }}</span>{% endif %}
|
||||
{%- if can_run %} <a class="field-hint" href="/ansible/schedules">Schedule it →</a>{% endif %}</h2>
|
||||
{%- if can_run %} <a class="field-hint" href="/ansible/schedules/new?source={{ source_name|urlencode }}&playbook={{ playbook_path|urlencode }}">Schedule it →</a>{% endif %}</h2>
|
||||
{% if schedules %}
|
||||
<table class="table">
|
||||
<tbody>
|
||||
{% for row in schedules %}{% set s = row.s %}
|
||||
<tr class="row-link{% if not s.enabled %} row-off{% endif %}">
|
||||
<td class="cell-name"><a class="row-target" href="/ansible/schedules?edit={{ s.id }}#form">{{ s.name }}</a></td>
|
||||
<td class="cell-name"><a class="row-target" href="/ansible/schedules/{{ s.id }}">{{ s.name }}</a></td>
|
||||
<td>on {{ row.scope_label }} · {{ interval_words(s.interval_seconds) }}</td>
|
||||
<td class="nowrap">{% if not s.enabled %}<span class="tone-dim">paused</span>
|
||||
{%- elif row.next and row.next.at %}next {{ row.next.at|ago }}{% else %}due now{% endif %}</td>
|
||||
|
||||
Reference in New Issue
Block a user