]> git.ipfire.org Git - people/jschlag/pbs.git/blob - data/templates/repository-detail.html
Drop dependency on textile
[people/jschlag/pbs.git] / data / templates / repository-detail.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 {{ _("Repository") }}: {{ repo.name }} - {{ _("Distribution") }}: {{ distro.name }}
5 {% end block %}
6
7 {% block body %}
8 <ul class="breadcrumb">
9 <li>
10 <a href="/">{{ _("Home") }}</a>
11 <span class="divider">/</span>
12 </li>
13 <li>
14 <a href="/distros">{{ _("Distributions") }}</a>
15 <span class="divider">/</span>
16 </li>
17 <li>
18 <a href="/distro/{{ distro.identifier }}">{{ distro.name }}</a>
19 <span class="divider">/</span>
20 </li>
21 <li class="active">
22 <a href="/distro/{{ distro.identifier }}/repo/{{ repo.identifier }}">{{ repo.name }}</a>
23 </li>
24 </ul>
25
26 <div class="page-header">
27 <div class="pull-right">
28 {% if repo.type == "stable" %}
29 <span class="label label-success">
30 {{ _("Stable repository") }}
31 </span>
32 {% elif repo.type == "unstable" %}
33 <span class="label label-warning">
34 {{ _("Unstable repository") }}
35 </span>
36 {% elif repo.type == "testing" %}
37 <span class="label label-important">
38 {{ _("Testing repository") }}
39 </span>
40 {% end %}
41
42 {% if repo.enabled_for_builds %}
43 <span class="label label-inverse">
44 {{ _("Enabled for builds") }}
45 </span>
46 {% end %}
47 </div>
48
49 <h1>
50 {{ _("Repository") }}: {{ repo.name }}
51 <small>{{ distro.name }}</small>
52 </h1>
53 </div>
54
55 <div class="row">
56 <div class="span8">
57 <blockquote>
58 {% module Text(repo.description, pre=False) %}
59 </blockquote>
60
61 <br><br>
62
63 <table class="table">
64 <tr>
65 <td>{{ _("Repository is enabled for builds?") }}</td>
66 <td>
67 {% if repo.enabled_for_builds %}
68 {{ _("Yes") }}
69 {% else %}
70 {{ _("No") }}
71 {% end %}
72 </td>
73 </tr>
74
75 <tr>
76 <td>{{ _("Obsolete builds") }}</td>
77 <td>
78 {{ len(obsolete_builds) }}
79 </td>
80 </tr>
81 </table>
82 </div>
83
84 <div class="span4">
85 <h3>{{ _("Total build time") }}</h3>
86
87 <table class="table table-striped table-hover">
88 <tbody>
89 {% for arch, build_time in build_times %}
90 <tr>
91 <td class="arch">{{ arch.name }}</td>
92 <td class="time">{{ friendly_time(build_time) }}</td>
93 </tr>
94 {% end %}
95 </tbody>
96 </table>
97
98 <p>
99 {{ _("The table above shows how long it took to build all packages in this repository.") }}
100 </p>
101 </div>
102 </div>
103
104 {% if current_user and current_user.is_admin() %}
105 <div class="row">
106 <div class="span12">
107 <hr>
108
109 <div class="btn-group pull-right">
110 <a class="btn btn-small btn-danger" href="/distro/{{ distro.identifier }}/repo/{{ repo.identifier }}/edit">
111 <i class="icon-edit icon-white"></i>
112 {{ _("Edit") }}
113 </a>
114 <a class="btn btn-small btn-danger" href="/distro/{{ distro.identifier }}/repo/{{ repo.identifier }}/delete">
115 <i class="icon-trash icon-white"></i>
116 {{ _("Delete") }}
117 </a>
118 </div>
119 </div>
120 </div>
121 {% end %}
122
123 {% if unpushed_builds %}
124 <div class="row">
125 <div class="span12">
126 <h2>{{ _("Unpushed builds") }}</h2>
127 <div class="alert">
128 {{ _("These builds were already put into this repository, but were not pushed out to the mirror servers, yet.") }}
129 </div>
130 {% module BuildTable(unpushed_builds, show_repo_time=True) %}
131 </div>
132 </div>
133 {% end %}
134
135 {% if builds %}
136 <div class="row">
137 <div class="span12">
138 <h2>
139 {{ _("Builds in this repository") }}
140 <small>({{ len(builds) }})</small>
141 </h2>
142 {% module BuildTable(builds, show_repo_time=True, show_can_move_forward=True) %}
143 </div>
144 </div>
145 {% end %}
146
147 {% if obsolete_builds %}
148 <div class="row">
149 <div class="span12">
150 <h2>
151 {{ _("Obsolete builds") }}
152 <small>({{ len(obsolete_builds) }})</small>
153 </h2>
154 {% module BuildTable(obsolete_builds) %}
155 </div>
156 </div>
157 {% end %}
158
159 {% end block %}