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