{# Renders the next-best-action banner shared by / and /p/{key}. #} {# Caller must pass `next_actions` (list of dicts from #} {# watchmen.viewer.actions.next_best_actions) and optionally #} {# `active_web_runs`. Quiet by design when there's nothing to do. #} {% if next_actions or active_web_runs %}
Next moves
{% if next_actions %}{{ next_actions|length }} ranked{% endif %} {% if active_web_runs %} · {{ active_web_runs|length }} running{% endif %}
{% if active_web_runs %}
{% for r in active_web_runs %} {{ r.action }} {{ r.project_key }} {{ r.duration_s or 0 }}s {% endfor %}
{% endif %} {% if next_actions %} {% endif %}
{% endif %}