{% extends "base.html" %} {% from "macros.html" import utc_timestamp, utc_timestamp_tooltip %} {% block title %}{{ stream_title }} PatchSets - ePortal{% if current_unit() %} [{{ current_unit().title }}]{% endif %}{% endblock %} {% set sclass = { DeploymentStatus.UNDEPLOYED: 'undeployed', DeploymentStatus.NOT_DOWNLOADED: 'undeployed', DeploymentStatus.ENABLED: 'enabled', DeploymentStatus.DISABLED: 'disabled', DeploymentStatus.NOT_AVAILABLE: 'na', DeploymentStatus.BLOCKED: 'na', DeploymentStatus.WARNING: 'enabled warning'} %} {% block head_css %} {{ super() }} {% endblock %} {% block body %}
| Patchsets | {% for feed in all_feeds %}
{{ feed }}
{#- The delay is a property of the feed, constant down its column: stated
once beside the name rather than repeated in every cell, and it is what
makes a cell with no countdown legible as "armed, and done waiting".
Its own element, so the heading's first text node stays the feed name;
joined by a non-breaking space, so the two never wrap apart and read as
an accident rather than as an annotation. #}
{%- if feed_windows.get(feed) %} +{{ feed_windows[feed] // 3600 }}h{% endif %}
{#- Present with or without a count, so a feed with no servers keeps
its name level with the ones that have some. #}
{%- if usage.feed.get(feed) %}{{ usage.feed[feed] }}{% endif -%}
|
{% endfor %}
Actions | ||
|---|---|---|---|---|
| {% if usage.release.get(ps) %} {{ usage.release[ps] }} {% endif %} | {% set distro_list = ", ".join(distros[ps] | sort) or 'Unknown' %}{{ distro_list }} {%- if raw_flavors[ps] %} {# The `title` tooltip needs a hover; the cell cannot take focus. #} Flavours: {{ ", ".join(raw_flavors[ps]) }} {%- endif %} | {{ ps }} | {% for feed in all_feeds %} {% set feed_status = status.get((feed, ps)) %} {% set window = deploy_windows.get((feed, ps)) %}
{{ feed_status }}
{%- if feed_status == DeploymentStatus.WARNING %}
Disabled on the patchserver {%- endif %} {%- if window is not none %} {%- if window.is_held_back %} {# The wait is what an operator acts on; the instant it ends is the detail, so it rides in the tooltip -- plus a `visually-hidden` twin, because the cell cannot take focus and a `title` needs a hover. #} {% call utc_timestamp_tooltip(window.eligible_at_datetime, 'deploy-window') %}Enabled in {{ window.hours_until_eligible }}h{% endcall %} , eligible {{ utc_timestamp(window.eligible_at_datetime) }} {%- else %} {# The soak is over and the next auto pass will roll this out, which is a different thing from a cell nothing is going to touch. The wait is now the pass's own period -- unless none is scheduled and a cron job runs it. #} {%- if auto_pass_minutes %} Enabled within {{ auto_pass_minutes }} min {%- else %} Enabled on next auto-update {%- endif %} {%- endif %} {%- endif %} {% if usage.feed_release.get((feed, ps)) %} {{ usage.feed_release[(feed, ps)] }} {% endif %} |
{% endfor %}
{% if permitted(perms.DEPLOY) %} {% if ps in unmanageable %} Manage {% else %} {# No role="button": it navigates, so it is a link. Claiming otherwise promises a Space key an anchor does not honour. #} Manage {% endif %} {% endif %} |