]> git.ipfire.org Git - people/jschlag/pbs.git/blob - data/templates/distro-list.html
Drop dependency on textile
[people/jschlag/pbs.git] / data / templates / distro-list.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Distributions") }}{% end block %}
4
5 {% block body %}
6 <ul class="breadcrumb">
7 <li>
8 <a href="/">{{ _("Home") }}</a>
9 <span class="divider">/</span>
10 </li>
11 <li class="active">
12 <a href="/distros">{{ _("Distributions") }}</a>
13 </li>
14 </ul>
15
16 <div class="page-header">
17 <h1>
18 {{ _("Distributions") }}
19 <small>({{ len(distros) }})</small>
20 </h1>
21 </div>
22
23 <div class="row">
24 <div class="span10 offset1">
25 <p>
26 {{ _("This is a list of all distributions, that are maintained in this build service.") }}
27 {{ _("You may click on one of them and see more details or jump directly to one of the repositories.") }}
28 </p>
29
30 <table class="table">
31 <thead>
32 <tr>
33 <th>{{ _("Distribution") }}</th>
34 <th>{{ _("Repositories") }}</th>
35 </tr>
36 </thead>
37 <tbody>
38 {% for distro in distros %}
39 <tr>
40 <td>
41 <a href="/distro/{{ distro.identifier }}">{{ distro.name }}</a>
42 <br /><em>{{ distro.slogan }}</em>
43 </td>
44 <td>
45 <ul class="unstyled">
46 {% for repo in distro.repositories %}
47 <li>
48 <a href="/distro/{{ distro.identifier }}/repo/{{ repo.identifier }}">{{ repo.name }}</a>
49 - {{ repo.summary }}
50 </li>
51 {% end %}
52 </ul>
53 </td>
54 </tr>
55 {% end %}
56 </tbody>
57 </table>
58 </div>
59 </div>
60
61 {% if current_user and current_user.is_admin() %}
62 <div class="row">
63 <div class="span10 offset1">
64 <a class="btn btn-danger pull-right" href="/distro/new">
65 <i class="icon-star icon-white"></i>
66 {{ _("New distribution") }}
67 </a>
68 </div>
69 </div>
70 {% end %}
71 {% end block %}