]> git.ipfire.org Git - people/jschlag/pbs.git/blob - data/templates/modules/modal-build-push.html
7fb61b1f9b86b5cbd6c1d01c42baffbbd439a9ae
[people/jschlag/pbs.git] / data / templates / modules / modal-build-push.html
1 {% extends "modal-base.html" %}
2
3 {% block id %}push{% end block %}
4 {% block form_action %}/build/{{ build.uuid }}/manage{% end block %}
5
6 {% block title %}
7 {{ _("Push %s to a repository") % build.name }}
8 {% end block %}
9
10 {% block body %}
11 <input type="hidden" name="action" value="push" />
12
13 {% if not build.all_jobs_finished %}
14 <div class="alert alert-warning">
15 <strong>{{ _("Not all jobs are finished!") }}</strong>
16 {{ _("So it is <em>strongly</em> discouraged to push this build into the next repository.") }}
17 </div>
18
19 <hr>
20 {% end %}
21
22 <fieldset>
23 <div class="control-group">
24 <label class="control-label">{{ _("New repository") }}</label>
25 <div class="controls">
26 <select id="repo" name="repo" {% if not current_user.is_admin() %}disabled{% end %}>
27 {% for repo in [r for r in build.distro.repositories if not r == current_repo] %}
28 <option value="{{ repo.identifier }}" {% if repo == next_repo %}selected{% end %}>
29 {{ repo.name }} - {{ repo.summary }}
30 </option>
31 {% end %}
32 </select>
33
34 <p class="help-block">
35 {{ _("The build will be put into this repository.") }}
36 </p>
37 </div>
38 </div>
39 </fieldset>
40
41 <hr>
42
43 <p>
44 {{ _("You are going to push this build into a new repository.") }}
45 {{ _("This means that the build won't be part of the repository it is currently in anymore.") }}
46 </p>
47 <p>
48 {{ _("Please make sure you tested this build well enough that it will keep up with the quality level of the target repository.") }}
49 </p>
50 {% end block %}
51
52 {% block footer_text %}
53 {% if current_repo %}
54 {{ _("Current repository") }}:
55 <a href="/distro/{{ build.distro.identifier }}/repo/{{ current_repo.identifier }}">
56 {{ current_repo.name }}
57 </a>
58 {% end %}
59 {% end %}
60 {% block submit_text %}{{ _("Push") }}{% end block %}