OXYGENHUB
# d7e2c2754807 oxygenhub / templates / admin_diffusion.html
1.7 KiB · HTML · last changed Administration: a sidebar of grouped pages, one page per section (closes #288) 15 days ago source blame history raw
1
{% extends "base.html" %}
2
{% import "admin_nav.html" as an %}
3
{% import "diffusion_rows.html" as d %}
4
{% block title %}Diffusion · Administration{% endblock %}
5
{% block mainclass %} class="wide"{% endblock %}
6
{% block content %}
7
<div class="head"><h1>Diffusion <small>{{ upstreams.len()|plural("upstream", "upstreams") }} · <a href="/admin">Administration</a></small></h1></div>
8
<div class="settings-layout">
9
{% call an::nav(crate::web::admin::AdminSection::Diffusion) %}
10
<div class="sections settings-body">
11
<p class="small mute df-key">Each pill has two halves. Left, the upstream: <span class="df-pill"><span class="df-half df-green">checked</span></span> its own run passed, <span class="df-pill"><span class="df-half df-amber">untested</span></span> it has no checks, <span class="df-pill"><span class="df-half df-red">failing</span></span> its run failed. Right, the repository that pins it: <span class="df-pill"><span class="df-half df-green">passes</span></span> its run on the bump passed, <span class="df-pill"><span class="df-half df-red">fails</span></span> it failed, <span class="df-pill"><span class="df-half df-grey">testing</span></span> still running, <span class="df-pill"><span class="df-half df-green">up to date</span></span> nothing to bump.</p>
12
{% if upstreams.is_empty() %}<p class="empty">No repository on this hub is pinned by another yet.</p>{% endif %}
13
{% for (up, list, unverified) in upstreams %}
14
<h2><a href="/{{ up.owner }}/{{ up.name }}/diffusion">{{ up.owner }}/{{ up.name }}</a> <small>{{ list.len()|plural("consumer", "consumers") }}{% if *unverified %} · <span class="df-pill"><span class="df-half df-amber">untested</span></span>{% endif %}</small></h2>
15
{% call d::rows(list) %}
16
{% endfor %}
17
</div>
18
</div>
19
{% endblock %}