summaryrefslogtreecommitdiff
path: root/doc/invocations-http-server/templates/invocations.html
blob: f2212af082e80596db498744536b5d8820d7d4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "base.html" %}
{% block heading %}
Recent Invocations
{% endblock %}

{% block content %}
<h1>Recent Invocations</h1>
{% if invocations %}
<ul>
  {% for invocation in invocations %}
  <li> <a href="/invocations/{{invocation.name |e}}"><tt>{{ invocation.name | e }}</tt></a>
    {% if invocation.subcommand %}
    {{ invocation.subcommand | e }}
    {% endif %}
    {% if invocation.remote_address %}
    (on <tt>{{ invocation.remote_address | e }}@{{ invocation.remote_props | e }}</tt>)
    {% endif %}
    {% if invocation.target %}
    <tt>{{ invocation.target | e}}@{{ invocation.config | e}}</tt>
    {% endif %}
    {% if invocation.exit_code != 0 %}
    <b>
      {% if invocation.exit_code == 1 %}
      build failed
      {% elif invocation.exit_code == 2 %}
      failed
      {% elif invocation.exit_code == 8 %}
      analysis failure
      {% elif invocation.exit_code == 16 %}
      build-environment failure
      {% elif invocation.exit_code == 32 %}
      syntax/invocation error
      {% else %}
      exit code {{ invocation.exit_code | e }}
      {% endif %}
    </b>
    {% endif %}
  </li>
  {% endfor %}
</ul>
{% else %}
<i>(none)</i>
{% endif %}
{% endblock %}