aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/status/web/templates/change_macros.html
blob: 2ca01d9f6381b99f2bb7fb0081a4711a71fee4f5 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{% macro change(c) %}

<table class="info">
  {% set row_class=cycler('alt','') %}
  <tr class="{{ row_class.next() }}">
    <td class="left">Category</td>
    <td><b>{{ c.category }}</b></td>
  </tr>
  <tr class="{{ row_class.next() }}">
    <td class="left">Changed by</td>
    <td><b>{{ c.who|email }}</b></td>
  </tr>
  <tr class="{{ row_class.next() }}">
    <td class="left">Changed at</td>
    <td><b>{{ c.at }}</b></td>
  </tr>

  {% if c.repository %}
  <tr class="{{ row_class.next() }}">
    <td class="left">Repository</td>
    <td><b>{{ c.repository|repolink }}</b></td>
  </tr>
  {% endif %} {% if c.project %}
  <tr class="{{ row_class.next() }}">
    <td class="left">Project</td>
    <td><b>{{ c.project|projectlink }}</b></td>
  </tr>
  {% endif %} {% if c.branch %}
  <tr class="{{ row_class.next() }}">
    <td class="left">Branch</td>
    <td><b>{{ c.branch|e }}</b></td>
  </tr>
  {% endif %} {% if c.rev %}
  <tr class="{{ row_class.next() }}">
    <td class="left">Revision</td>
    <td>{%- if c.revlink -%}<a href="{{ c.revlink }}">{{ c.rev|e }}</a>
    {%- else -%}{{ c.rev|revlink(c.repository) }} {%- endif -%}</td>
  </tr>
  {% endif %}
</table>

{% if c.comments %}
<h3>Comments</h3>
<pre class="comments">{{ c.comments|changecomment(c.project) }}</pre>
{% endif %}

<h3 class="files">Changed files</h3>
<ul>
  {% for f in c.files -%}
  <li class="{{ loop.cycle('alt', '') }}">{%- if f.url %}<a
    href="{{ f.url }}"><b>{{ f.name|e }}</b></a></li>
  {%- else %}
  <b>{{ f.name|e }}</b>
  {%- endif -%}
  </li>
  {% else %}
  <li>no files</li>
  {% endfor %}
</ul>

{% if c.properties %}
<h3>Properties</h3>
<table class="info">
  {% for p in c.properties %}
  <tr class="{{ loop.cycle('alt') }}">
    <td class="left">{{ p[0]|capitalize|e }}</td>
    <td>{{ p[1]|e }}</td>
  </tr>
  {% endfor %}
</table>
{% endif %} 
{%- endmacro %} 

{% macro box_contents(who, url, pageTitle, revision, project) -%}
<a href="{{ url }}" title="{{ pageTitle|e }}">{{ who|user }}</a>
{%- endmacro %}