]> git.ipfire.org Git - people/jschlag/pbs.git/blob - data/templates/repository-edit.html
Drop dependency on textile
[people/jschlag/pbs.git] / data / templates / repository-edit.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Edit repository %s") % repo.name }}{% end block %}
4
5 {% block body %}
6 <h1>
7 {{ _("Edit repository %s") % repo.name }}
8 <span>- {{ _("Distribution") }}: {{ distro.name }}</span>
9 </h1>
10
11 <form method="post" action="">
12 {% raw xsrf_form_html() %}
13 <table class="form form3">
14 <tr>
15 <td class="col1">{{ _("Name") }}</td>
16 <td class="col2">
17 <input name="name" type="text" value="{{ repo.name }}" />
18 </td>
19 <td class="col3">
20 {{ _("The name of the repository.") }}
21 {{ _("Must only contain of the lowercase characters.") }}
22 </td>
23 </tr>
24 <tr>
25 <td class="col1">{{ _("Description") }}</td>
26 <td colspan="2">
27 <textarea name="description">{{ repo.description }}</textarea>
28 </td>
29 </tr>
30 </table>
31 <div style="clear: both;">&nbsp;</div>
32
33 <h2>{{ _("Score settings") }}</h2>
34 <p>
35 {{ _("These settings configure the automatic score feature.") }}
36 {{ _("Builds that gained a certain score are moved to the next repository automatically and removed if the score is too bad.") }}
37 </p>
38 <table class="form form3">
39 <tr>
40 <td class="col1">{{ _("Needed score") }}</td>
41 <td class="col2">
42 <input name="name" type="text" value="{{ repo.score_needed }}" />
43 </td>
44 <td class="col3">
45 {{ _("The score that is needed for builds to automatically be moved into this repository.") }}
46 </td>
47 </tr>
48 <tr>
49 <td class="col1">{{ _("Minimum time") }}</td>
50 <td class="col2">
51 <input name="name" type="text" value="{{ repo.time_min }}" />
52 </td>
53 <td class="col3">
54 {{ _("Every build must stay a minimum time in a repository.") }}
55 {{ _("This is to ensure that a package gets tested well.") }}
56 {{ _("Enter zero to disable the feature.") }}
57 </td>
58 </tr>
59 <tr>
60 <td class="col1">{{ _("Maximum time") }}</td>
61 <td class="col2">
62 <input name="name" type="text" value="{{ repo.time_max }}" />
63 </td>
64 <td class="col3">
65 {{ _("If a build is more than a certain amount of time in a repository, it will automatically be removed.") }}
66 {{ _("This is to ensure that packages are not forgotten to be pushed.") }}
67 {{ _("Enter zero to disable the feature.") }}
68 </td>
69 </tr>
70 </table>
71 <div style="clear: both;">&nbsp;</div>
72
73 <h2>{{ _("Build settings") }}</h2>
74 <table class="form form3">
75 <tr>
76 <td class="col1">{{ _("Use package for builds?") }}</td>
77 <td class="col2">
78 <input type="checkbox" name="enabled_for_builds" {%if repo.enabled_for_builds %}checked="checked"{% end %} />
79 </td>
80 <td class="col3">
81 {{ _("Should the package be selected for builds by default?") }}
82 {{ _("Use with caution!") }}
83 </td>
84 </tr>
85 </table>
86 <div style="clear: both;">&nbsp;</div>
87
88 <table class="form form3">
89 <tr>
90 <td colspan="3" class="buttons">
91 <input type="submit" value="{{ _("Save") }}" />
92 </td>
93 </tr>
94 </table>
95 </form>
96 {% end block %}