aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/status/web/templates/box_macros.html
blob: ec5b80b6a6b6e9f13ba2e0b9a821146b1fe421c7 (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
{% macro box(text=[], comment=None) -%}

{%- if comment -%}<!-- {{ comment }} -->{%- endif -%}
  <td class="{{ kwargs.class or kwargs.class_ or "" }}"
    {%- for prop in ("align", "colspan", "rowspan", "border", "valign", "halign") -%}
      {%- if prop in kwargs %} {{ prop }}="{{ kwargs[prop] }}"{% endif -%}
    {%- endfor -%}>

    {%- if text is string -%}
      {{ text }}
    {%- else -%}
      {{- text|join("<br/>") -}}
    {%- endif -%}
  </td>
{% endmacro %}

{# this is currently just the text part of the boxes #}

{% macro build_box(reason, url, number) -%}
  <a title="Reason: {{ reason|e }}" href="{{ url }}">Build {{ number }}</a>
{%- endmacro %}

{% macro step_box(text, logs, urls, stepinfo) -%}
  {%- if text is string -%}
    {{ text }}
  {%- else -%}
    {{- text|join("<br/>") -}}
  {%- endif -%}
  <br/>
  {%- for l in logs %}
    <a {% if l.url %}href="{{ l.url }}"{% endif %}>{{ l.name|e }}</a><br/>
  {%- endfor -%}

  {%- for u in urls %}
    [<a href="{{ u.link }}" class="BuildStep external">{{ u.name|e }}</a>]<br/>
  {%- endfor -%}
{%- endmacro %}