1 {% extends
"base.html" %}
3 {% block title %}{{ _(
"Manage build %s") % build.name }}{% end block %}
6 <div class=
"page-header">
8 {{ _(
"Manage build") }}: {{ build.name }}
9 <small>- {{ _(
"Distribution") }}: {{ distro.name }}
</small>
13 {% if build.critical_path and not current_user.has_perm(
"manage_critical_path") %}
14 <div class=
"alert alert-block alert-error">
15 <h4 class=
"alert-heading">{{ _(
"Permission denied") }}
</h4>
16 {{ _(
"You do not have the permission to update packages that belong to the <em>critical path</em>.") }}
20 {% if not build.all_jobs_finished %}
21 <div class=
"alert alert-block alert-warning">
22 <h4 class=
"alert-heading">{{ _(
"Not all jobs are finished") }}
</h4>
24 {{ _(
"Not all jobs of this build are finished, yet.") }}
25 {{ _(
"It is <strong>strongly discouraged</strong> to push this build into the next repository.") }}
28 {{ _(
"However, the build will be automatically unpushed if one or more build jobs fail.") }}
34 <div class=
"span6 offset3">
35 <form class=
"form-horizontal" method=
"POST" action=
"">
36 {% raw xsrf_form_html() %}
37 <input type=
"hidden" name=
"action" value=
"push" />
41 {% if mode ==
"admin" %}
42 {{ _(
"Push to a repository") }}
44 {{ _(
"Push to next repository") }}
46 {{ _(
"Push to first repository") }}
50 <div class=
"control-group">
51 <label class=
"control-label" for=
"repo_push">{{ _(
"New repository") }}
</label>
52 <div class=
"controls">
53 {% if mode ==
"admin" %}
54 <select id=
"repo_push" name=
"repo">
55 {% for repo in distro.repositories %}
56 {% if not build.repo == repo %}
57 <option value=
"{{ repo.identifier }}" {% if repo == next_repo %}
selected=
"selected"{% end %}
>
58 {{ repo.name }} - {{ repo.summary }}
64 <input type=
"hidden" name=
"repo" value=
"{{ next_repo.identifier }}" />
66 <a href=
"/distro/{{ distro.identifier }}/repo/{{ next_repo.identifier }}">{{ next_repo.name }}
</a>
67 - {{ next_repo.summary }}
70 <p class=
"help-block">
71 {{ _(
"This is the target repository for the build.") }}
76 <div class=
"form-actions">
77 <button type=
"submit" class=
"btn btn-primary">{{ _(
"Push") }}
</button>
78 <a class=
"btn btn-danger" href=
"/build/{{ build.uuid }}/unpush">{{ _(
"Unpush") }}
</a>
79 <a class=
"btn" href=
"/build/{{ build.uuid }}">{{ _(
"Cancel") }}
</a>
86 {% if current_user and current_user.is_admin() %}
88 <div class=
"span6 offset3">
89 {% if mode ==
"admin" %}
90 <a class=
"btn pull-right" href=
"?mode=user">{{ _(
"Switch to user mode") }}
</a>
92 <a class=
"btn pull-right" href=
"?mode=admin">{{ _(
"Switch to admin mode") }}
</a>