]> git.ipfire.org Git - people/jschlag/pbs.git/blob - data/templates/builds-watchers-list.html
Drop dependency on textile
[people/jschlag/pbs.git] / data / templates / builds-watchers-list.html
1 {% extends "base.html" %}
2
3 <!-- XXX I THINK THIS IS UNUSED -->
4
5 {% block title %}{{ _("Build") }}: {{ _("Watchers of %s") % build.name }}{% end block %}
6
7 {% block body %}
8 <h1>{{ _("Build") }}: {{ _("Watchers of %s") % build.name }}</h1>
9
10 <p>
11 {{ _("This is a list of all users who watch this build.") }}
12 {{ _("If you write a comment or the status of the build is changed, they all will get a message.") }}
13 </p>
14
15 {% if current_user in watchers %}
16 <p>
17 {{ _("You are already watching this build.") }}
18 </p>
19 {% elif build.owner and current_user == build.owner %}
20 <p>
21 {{ _("You are the owner of this build. So you don't need to watch it.") }}
22 </p>
23 {% else %}
24 <p>
25 <a href="/build/{{ build.uuid }}/watch">{{ _("Watch this build.") }}</a>
26 </p>
27 {% end %}
28
29 <table class="form form2">
30 <tr>
31 <td class="col1">{{ _("Build") }}</td>
32 <td class="col2">
33 <a href="/build/{{ build.uuid }}">{{ build.name }}</a>
34 </td>
35 </tr>
36 </table>
37 <div style="clear: both;">&nbsp;</div>
38
39 <h2>{{ _("List of all watchers") }}</h2>
40 <ul class="watchers">
41 {% for watcher in watchers %}
42 <li class="user">
43 <a class="{{ watcher.state }}" href="/user/{{ watcher.name }}">{{ watcher.realname }}</a>
44 </li>
45 {% end %}
46 </ul>
47 {% end block %}
48
49 {% block sidebar %}
50 <h1>{{ _("Actions") }}</h1>
51 <ul>
52 <li>
53 <a href="/build/{{ build.uuid }}">{{ _("Back to build") }}</a>
54 </li>
55 </ul>
56 {% end %}