]>
Commit | Line | Data |
---|---|---|
1 | {% extends "../base.html" %} | |
2 | ||
3 | {% block title %}{{ _("Builders") }}{% end block %} | |
4 | ||
5 | {% block body %} | |
6 | <ul class="breadcrumb"> | |
7 | <li> | |
8 | <a href="/">{{ _("Home") }}</a> | |
9 | <span class="divider">/</span> | |
10 | </li> | |
11 | <li class="active"> | |
12 | <a href="/builders">{{ _("Builders") }}</a> | |
13 | </li> | |
14 | </ul> | |
15 | ||
16 | <div class="page-header"> | |
17 | <h2>{{ _("Builders") }}</h2> | |
18 | </div> | |
19 | ||
20 | <div class="row"> | |
21 | <div class="span12"> | |
22 | <table class="table table-striped table-hover"> | |
23 | <thead> | |
24 | <tr> | |
25 | <th> </th> | |
26 | <th>{{ _("Hostname") }}</th> | |
27 | <th>{{ _("Architecture") }}</th> | |
28 | <th>{{ _("Jobs") }}</th> | |
29 | </tr> | |
30 | </thead> | |
31 | <tbody> | |
32 | {% for builder in builders %} | |
33 | <tr> | |
34 | <td class="lead"> | |
35 | {% if builder.state == "disabled" %} | |
36 | <i class="icon-remove muted"></i> | |
37 | {% elif builder.state == "offline" %} | |
38 | <i class="icon-remove text-warning"></i> | |
39 | {% elif builder.state == "online" %} | |
40 | <i class="icon-ok text-success"></i> | |
41 | {% end %} | |
42 | </td> | |
43 | <td> | |
44 | <a href="/builder/{{ builder.name }}">{{ builder.name }}</a> | |
45 | <br> | |
46 | {{ builder.cpu_model or _("Unknown CPU") }} | |
47 | {% if builder.mem_total %} | |
48 | - {{ format_size(builder.mem_total) }} | |
49 | {% end %} | |
50 | </td> | |
51 | <td> | |
52 | {{ builder.cpu_arch or _("Unknown") }} | |
53 | </td> | |
54 | <td> | |
55 | <p class="{% if not builder.active_jobs %}text-success{% elif len(builder.active_jobs) >= builder.max_jobs %}text-error{% else %}text-warning{% end %}"> | |
56 | {{ len(builder.active_jobs) }}/{{ builder.max_jobs }} | |
57 | </p> | |
58 | </td> | |
59 | </tr> | |
60 | {% end %} | |
61 | </tbody> | |
62 | </table> | |
63 | ||
64 | {% if current_user and current_user.is_admin() %} | |
65 | <div class="btn-group pull-right"> | |
66 | <a class="btn" href="/builder/new">{{ _("Create new builder") }}</a> | |
67 | </div> | |
68 | {% end %} | |
69 | </div> | |
70 | </div> | |
71 | {% end block %} |