{% 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 %} {% if local %}
Patch source isn't configured! You can setup source here or deploy patchsets manually. See documentation.
{% endif %} {% if deployment_status %} {% endif %}

Available {{ stream_title }} PatchSets {% if is_kernel and enabled_distros %} {{ enabled_distros | join(', ') }} {% endif %}

{% if (ps_products|length) > 1 %} {% endif %}
{# The grid is as wide as the feeds the portal has, so the page reflows by scrolling the table rather than itself. Focusable: a scroll container that only the mouse can reach is unusable from the keyboard. Named, or that stop announces as a group with nothing to say. #}
{% for feed in all_feeds %} {% endfor %} {% for ps in patchsets %} {% set distro_list = ", ".join(distros[ps] | sort) or 'Unknown' %} {% for feed in all_feeds %} {% set feed_status = status.get((feed, ps)) %} {% set window = deploy_windows.get((feed, ps)) %} {% endfor %} {% endfor %}
Patchsets and their deployment state per feed
Patchsets {{ 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 -%}
Actions
{% if usage.release.get(ps) %} {{ usage.release[ps] }} {% endif %} {{ distro_list }} {%- if raw_flavors[ps] %} {# The `title` tooltip needs a hover; the cell cannot take focus. #} Flavours: {{ ", ".join(raw_flavors[ps]) }} {%- endif %} {{ 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 %}
{% 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 %}
{% endblock -%} {% block tail %} {{ super() }}
{% endblock %}