diff options
Diffstat (limited to 'templates/attention.html')
| -rw-r--r-- | templates/attention.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/attention.html b/templates/attention.html new file mode 100644 index 0000000..caa277f --- /dev/null +++ b/templates/attention.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} +{% block content %} +<h1>Attention</h1> +{% if empty %}<p class="mut">Nothing needs you.</p>{% endif %} +{% if !notices.is_empty() %}<h2>Alerts</h2> +<table><tr><th>pkgbase</th><th>kind</th><th>severity</th><th>detail</th><th>since</th><th></th></tr> +{% for n in notices %}<tr> +<td><a href="/packages/{{ n.pkgbase }}">{{ n.pkgbase }}</a></td> +<td>{{ n.kind }}</td><td class="risk-{{ n.severity }}">{{ n.severity }}</td> +<td><pre>{{ n.detail }}</pre></td><td class="mut">{{ n.created_at }}</td> +<td><form class="inline" method="post" action="/attention/ack"> +<input type="hidden" name="csrf" value="{{ page.csrf }}"><input type="hidden" name="id" value="{{ n.id }}"> +<button type="submit">acknowledge</button></form></td></tr>{% endfor %}</table>{% endif %} + +{% if !outdated.is_empty() %}<h2>Outdated: a dependency we publish has a newer version</h2> +<table><tr><th>package</th><th>built against</th><th>now in the index</th><th></th></tr> +{% for o in outdated %}<tr><td><a href="/packages/{{ o.pkgbase }}">{{ o.pkgbase }}</a></td> +<td>{{ o.built_with }}</td><td class="ok">{{ o.now }}</td> +<td><form class="inline" method="post" action="/packages/{{ o.pkgbase }}/rebuild"> +<input type="hidden" name="csrf" value="{{ page.csrf }}"><button type="submit">rebuild</button></form></td></tr> +{% endfor %}</table>{% endif %} + +{% if !missing.is_empty() %}<h2>Missing: a dependency we no longer publish</h2> +<table><tr><th>package</th><th>missing</th></tr> +{% for m in missing %}<tr><td>{{ m.pkgbase }}</td><td class="risk-high">{{ m.now }}</td></tr>{% endfor %}</table>{% endif %} + +{% if !blocked.is_empty() %}<h2>Blocked builds</h2> +<table><tr><th>build</th><th>pkgbase</th><th>waiting on</th></tr> +{% for b in blocked %}<tr><td><a href="/builds/{{ b.id }}">{{ b.id_short }}</a></td> +<td>{{ b.pkgbase }}</td><td>{% for d in b.blocked_on %}<span class="tag">{{ d }}</span> {% endfor %}</td></tr>{% endfor %}</table>{% endif %} + +{% if !downgrades.is_empty() %}<h2>Downgrades in the index</h2> +<table><tr><th>package</th><th>serving</th><th>AUR offers</th></tr> +{% for d in downgrades %}<tr><td>{{ d.pkgbase }}</td><td>{{ d.built_with }}</td><td>{{ d.now }}</td></tr>{% endfor %}</table>{% endif %} +{% endblock %} |
