2 <strong>{{ _(
"Watchers") }}:
</strong>
4 <a href=
"#watchers" data-toggle=
"modal">
5 {% if current_user and current_user in watchers %}
6 {% if len(watchers) ==
1 %}
8 {% elif len(watchers) ==
2 %}
9 {{ _(
"You and one other.") }}
11 {{ _(
"You and %s others.") % (len(watchers) -
1) }}
14 {{ _(
"One person.",
"%(num)s people.", len(watchers)) % {
"num" : len(watchers) } }}
19 <div class=
"modal hide fade" id=
"watchers">
20 <div class=
"modal-header">
21 <a class=
"close" data-dismiss=
"modal">×</a>
22 <h3>{{ _(
"Watchers of %s") % build.name }}
</h3>
25 <div class=
"modal-body">
27 {{ _(
"All users who watch this build will be automatically notified about status changes and comments.") }}
28 {{ _(
"This is an easy way of staying up to date.") }}
34 {% if current_user and current_user in watchers %}
36 <strong>{{ _(
"You.") }}
</strong>
40 {% for watcher in [w for w in watchers if current_user and not w == current_user] %}
42 <a href=
"/user/{{ watcher.name }}">{{ watcher.realname }}
</a>
48 {{ _(
"Nobody watches this build, yet. Be the first one.") }}
53 <div class=
"modal-footer">
55 {% if not current_user in watchers %}
56 <a class=
"btn" href=
"/build/{{ build.uuid }}/watch">{{ _(
"Watch this build") }}
</a>
57 {% elif current_user.is_admin() %}
58 <a class=
"btn" href=
"/build/{{ build.uuid }}/watch">{{ _(
"Add a watcher") }}
</a>
62 <a class=
"btn btn-primary" href=
"#" data-dismiss=
"modal">{{ _(
"Close") }}
</a>