]> git.ipfire.org Git - pbs.git/blob - src/templates/distro-list.html
bootstrap4: begin porting the distribution/repository sites
[pbs.git] / src / templates / distro-list.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Distributions") }}{% end block %}
4
5 {% block body %}
6 <div class="row">
7 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
8 <nav aria-label="breadcrumb" role="navigation">
9 <ol class="breadcrumb">
10 <li class="breadcrumb-item"><a href="/">{{ _("Home") }}</a></li>
11 <li class="breadcrumb-item active"><a href="/distros">{{ _("Distributions") }}</a></li>
12 </ol>
13 </nav>
14 </div>
15 </div>
16
17 <div class="row">
18 <div class="col-12 col-sm-12 col-md-9 col-lg-10 col-xl-10">
19 <h2>{{ _("Distributions") }}</h2>
20 </div>
21 {% if current_user and current_user.is_admin() %}
22 <div class="col-12 col-sm-12 col-md-3 col-lg-2 col-xl-2 mb-2">
23 <button class="btn btn-block dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
24 {{ _("Actions") }}
25 </button>
26 <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
27 <a class="dropdown-item" href="/distro/new">{{ _("New distribution") }}</a>
28 </div>
29 </div>
30 {% end %}
31 </div>
32
33 <div class="row">
34 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
35 <p>
36 {{ _("This is a list of all distributions, that are maintained in this build service.") }}
37 {{ _("You may click on one of them and see more details or jump directly to one of the repositories.") }}
38 </p>
39 </div>
40 </div>
41
42 <div class="row">
43 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
44 <div class="table-responsive">
45 <table class="table">
46 <thead>
47 <tr>
48 <th>{{ _("Distribution") }}</th>
49 <th>{{ _("Repositories") }}</th>
50 </tr>
51 </thead>
52 <tbody>
53 {% for distro in distros %}
54 <tr>
55 <td>
56 <a href="/distro/{{ distro.identifier }}">{{ distro.name }}</a>
57 <br /><em>{{ distro.slogan }}</em>
58 </td>
59 <td>
60 <ul class="list-unstyled">
61 {% for repo in distro.repositories %}
62 <li>
63 <a href="/distro/{{ distro.identifier }}/repo/{{ repo.identifier }}">{{ repo.name }}</a>
64 - {{ repo.summary }}
65 </li>
66 {% end %}
67 </ul>
68 </td>
69 </tr>
70 {% end %}
71 </tbody>
72 </table>
73 </div>
74 </div>
75 </div>
76 {% end block %}