acme-proxy-admin 0.6.0

The operation layer and web admin panel of acme-proxy (internal crate, no semver promise)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{#-
  An inline banner. `flash` is `{kind, message, code}` -- `kind` is one of
  `ok`/`error`/`warn`, and `code` is the `AdminError` code when there was one,
  so an operator reporting a problem can quote the same string the JSON API and
  the logs use.

  Rendered by every partial that can be the target of a mutation, since that is
  where the outcome has to become visible.
-#}
{#- A banner usually arrives by swap, long after the page was read, so it is a
    live region: an error interrupts (`alert`), anything else waits its turn
    (`status`). Without one, a screen reader says nothing at all. -#}
{% if flash %}
  <div class="flash {{ flash.kind }}" role="{% if flash.kind == 'error' %}alert{% else %}status{% endif %}">
    {{ flash.message }}
    {% if flash.code %}<span class="code">({{ flash.code }})</span>{% endif %}
  </div>
{% endif %}