File: tab.html

package info (click to toggle)
rebuildd 0.3.4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 240 kB
  • ctags: 180
  • sloc: python: 1,406; sh: 189; xml: 189; makefile: 27
file content (50 lines) | stat: -rw-r--r-- 1,604 bytes parent folder | download | duplicates (2)
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
$def with (jobs)
<table id="list">
  <thead>
    <tr>
      <th>Id</th>
      <th>Package</th>
      <th>Version</th>
      <th>Distribution/Architecture</th>
      <th>Creation date</th>
      <th>Mail to</th>
      <th>Build status</th>
      <th>Host</th>
      <th>Build start</th>
      <th>Build end</th>
    </tr>
  </thead>
  <tbody>
$for job in jobs:
    <tr>
    <td><a href="/job/$job.id">$job.id</a></td>
    <td><a href="/package/$job.package.name">$job.package.name</a></td>
    <td><a href="/package/$job.package.name/$job.package.version">$job.package.version</a></td>
    <td><a href="/dist/$job.dist/arch/$job.arch">$job.dist/$job.arch</a></td>
    <td>$job.creation_date</td>
    <td>$job.mailto</td>
    $if job.status == 0:
        <td bgcolor="gray" align="center">Duh?</td>
    $if job.status == 100:
        <td bgcolor="yellow" align="center">WAIT</td>
    $if job.status == 150:
        <td bgcolor="yellow" align="center">WAIT_LOCKED</td>
    $if job.status == 200:
        <td bgcolor="orange" align="center">BUILDING</td>
    $if job.status == 300:
        <td bgcolor="red" align="center">BUILD_FAILED</td>
    $if job.status == 400:
        <td bgcolor="green" align="center">BUILD_OK</td>
    $if job.status == 800:
        <td bgcolor="red" align="center">CANCELED</td>
    $if job.status == 900:
        <td bgcolor="red" align="center">FAILED</td>
    $if job.status == 1000:
        <td bgcolor="green" align="center">OK</td>
    <td><a href="/host/$job.host"></a>$job.host</td>
    <td>$job.build_start</td>
    <td>$job.build_end</td>
    </tr>
  </tbody>
</table>