]> git.ipfire.org Git - people/jschlag/pbs.git/blame - src/templates/build-state.html
Use autotools
[people/jschlag/pbs.git] / src / templates / build-state.html
CommitLineData
f6e6ff79
MT
1{% extends "base.html" %}
2
3{% block title %}{{ _("Build") }}: {{ build.name }}{% end block %}
4
5{% block body %}
d3a9ee4e
MT
6 <ul class="breadcrumb">
7 <li>
8 <a href="/">{{ _("Home") }}</a>
9 <span class="divider">/</span>
10 </li>
11 <li>
12 <a href="/packages">{{ _("Packages") }}</a>
13 <span class="divider">/</span>
14 </li>
15 <li>
16 <a href="/package/{{ build.pkg.name }}">{{ build.pkg.name }}</a>
17 <span class="divider">/</span>
18 </li>
19 <li>
b9d096e0 20 <a href="/build/{{ build.uuid }}">{{ build.pkg.friendly_version }}</a>
d3a9ee4e
MT
21 <span class="divider">/</span>
22 </li>
23 <li class="active">
24 <a href="/build/{{ build.uuid }}/state">{{ _("State") }}</a>
25 </li>
26 </ul>
f6e6ff79 27
d3a9ee4e
MT
28 {% module BuildHeadline(build) %}
29 {% module BuildStateWarnings(build) %}
f6e6ff79
MT
30
31 <table class="form form2">
32 <tr>
33 <td class="col1" colspan="2">
34 {{ _("The state of a build can be either building, testing, stable, obsolete or broken.") }}
35 </td>
36 </tr>
37 </table>
f6e6ff79
MT
38
39 <!-- XXX add some more information about what every single state means -->
40
41 {% if current_user and build.has_perm(current_user) %}
42 {% if build.state in ("building", "testing", "stable") %}
43 <form method="POST" action="">
f55d0127 44 {% raw xsrf_form_html() %}
f6e6ff79
MT
45 <table class="form form2">
46 <tr>
47 <td class="col1" colspan="2">
48 <h2>{{ _("Mark build as obsolete") }}</h2>
49 <p>
50 {{ _("If a package is updated by an other package it should be marked as <em>obsolete</em>.") }}
51 {{ _("For obsolete builds, there will be no test jobs created and it is recommended to remove them from the repositories soon.") }}
52 </p>
53 </td>
54 </tr>
55
56 {% if build.repo %}
57 <tr>
58 <td class="col1" colspan="2">
59 <input type="checkbox" name="rem_from_repo" checked="checked" />
60 {{ _("Remove build from the repository it is currently in?") }}
61 </td>
62 </tr>
63 {% end %}
64
65 <tr>
66 <td colspan="2" class="buttons">
67 <input type="hidden" name="state" value="obsolete" />
68 <input type="submit" value="{{ _("Mark build as obsolete") }}" />
69 </td>
70 </tr>
71 </table>
72 </form>
73 {% end %}
74
75 {% if build.state == "broken" %}
76 <form method="POST" action="">
f55d0127 77 {% raw xsrf_form_html() %}
f6e6ff79
MT
78 <table class="form form2">
79 <tr>
80 <td class="col1" colspan="2">
81 <h2>{{ _("Unbreak this build") }}</h2>
82
83 <p>
84 {{ _("In case this build has accidentially be marked as broken, it is possible to recover that state.") }}
85 </p>
86 </td>
87 </tr>
88 <tr>
89 <td colspan="2" class="buttons">
90 <input type="hidden" name="state" value="unbreak" />
91 <input type="submit" value="{{ _("Unbreak this build") }}" />
92 </td>
93 </tr>
94 </table>
95 </form>
96 {% else %}
97 <form method="POST" action="">
f55d0127 98 {% raw xsrf_form_html() %}
f6e6ff79
MT
99 <table class="form form2">
100 <tr>
101 <td class="col1" colspan="2">
102 <h2>{{ _("Mark build as broken") }}</h2>
103
104 <p>
105 {{ _("If a package does not build or contains <em>serious</em> bugs, it should be marked as broken.") }}
106 {{ _("Those builds can not be added into any repositories and are removed from all repositories they may currently be in.") }}
107 </p>
108 </td>
109 </tr>
110 <tr>
111 <td colspan="2" class="buttons">
112 <input type="hidden" name="state" value="broken" />
113 <input type="submit" value="{{ _("Mark build as broken") }}" />
114 </td>
115 </tr>
116 </table>
117 </form>
118 {% end %}
119 <div style="clear: both;">&nbsp;</div>
120 {% end %}
121
122 {% if build.repo %}
123 <table class="form form2">
124 <tr>
125 <td class="col1" colspan="2">
126 {{ _("Current repository") }}:
127 <a href="/distro/{{ build.distro.identifier }}/repo/{{ build.repo.identifier }}">{{ build.repo.name }}</a>
128 {{ _("since %s") % locale.format_date(build.repo_time, relative=False) }}
129 </td>
130 </tr>
131 </table>
132 {% end %}
133{% end block %}