]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/mirrors/index.html
Refactor mirrors
[ipfire.org.git] / src / templates / mirrors / index.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Mirrors") }}{% end block %}
4
5 {% block content %}
6 <section>
7 <div class="container">
8 <div class="row">
9 <div class="col col-lg-6">
10 <h1 class="display-2">{{ _("Mirrors") }}</h1>
11 </div>
12 </div>
13 </div>
14 </section>
15
16 <div class="row justify-content-center">
17 <div class="col-12 col-md-6">
18 <div class="list-group">
19 {% for m in mirrors %}
20 <a href="/mirrors/{{ m.hostname }}" class="list-group-item list-group-item-action
21 list-group-item-{% if m.state == "UP" %}success{% elif m.state == "DOWN" %}danger{% else %}warning{% end %}
22 flex-column align-items-start">
23 <h5 class="mb-1">{{ m.hostname }}</h5>
24
25 <p class="mb-0 text-truncate text-muted">
26 <span class="flag-icon flag-icon-{{ m.country_code.lower() }} small mr-1"></span> {{ m.country_name }}
27 {% if m.owner %}&dash; {{ m.owner }}{% end %}
28 </p>
29 </a>
30 {% end %}
31 </div>
32 </div>
33 </div>
34 {% end block %}