]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/mirrors-detail.html
Replace geoip database by local database
[people/jschlag/pbs.git] / src / templates / mirrors-detail.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Mirror: %s") % mirror.hostname }}{% 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>
12 <a href="/mirrors">{{ _("Mirrors") }}</a>
13 <span class="divider">/</span>
14 </li>
15 <li class="active">
16 <a href="/mirror/{{ mirror.hostname }}">{{ mirror.hostname }}</a>
17 </li>
18 </ul>
19
20 {% if current_user and current_user.has_perm("manage_mirrors") %}
21 <div class="btn-group pull-right">
22 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
23 {{ _("Actions") }} <span class="caret"></span>
24 </a>
25 <ul class="dropdown-menu">
26 <li>
27 <a href="/mirror/{{ mirror.hostname }}/edit">
28 <i class="icon-edit"></i>
29 {{ _("Edit settings") }}
30 </a>
31 </li>
32
33 <li class="divider"></li>
34 <li>
35 <a href="/mirror/{{ mirror.hostname }}/delete">
36 <i class="icon-trash"></i>
37 {{ _("Delete mirror") }}
38 </a>
39 </li>
40 </ul>
41 </div>
42 {% end %}
43
44 <div class="page-header">
45 <h2>
46 {{ _("Mirror: %s") % mirror.hostname }}
47 <small>{{ _("hosted by %s") % mirror.owner }}</small>
48 </h2>
49 </div>
50
51 <div class="row">
52 <div class="span6">
53 <table class="table table-striped table-hover">
54 <tbody>
55 <tr>
56 <td>{{ _("Hostname") }}</td>
57 <td>{{ mirror.hostname }}</td>
58 </tr>
59
60 {% if current_user and current_user.has_perm("manage_mirrors") %}
61 <tr>
62 <td>{{ _("Contact") }}</td>
63 <td>
64 {% if mirror.contact %}
65 <a href="mailto:{{ mirror.contact }}">{{ mirror.contact }}</a>
66 {% else %}
67 {{ _("N/A") }}
68 {% end %}
69 </td>
70 </tr>
71 {% end %}
72 </tbody>
73 </table>
74
75 <h3>{{ _("Status information") }}</h3>
76 <table class="table table-striped table-hover">
77 <tbody>
78 <tr>
79 <td>{{ _("Status") }}</td>
80 <td>{{ mirror.status }}</td>
81 </tr>
82
83 <tr>
84 <td>{{ _("Last check") }}</td>
85 <td>
86 {% if mirror.last_check %}
87 {{ format_date(mirror.last_check) }}
88 {% else %}
89 {{ _("Never") }}
90 {% end %}
91 </td>
92 </tr>
93 </tbody>
94 </table>
95 </div>
96
97 <div class="span6">
98 <p class="muted">
99 {{ _("The location of the mirror server could not be estimated.") }}
100 </p>
101 </div>
102 </div>
103
104 {% if log %}
105 <h3>{{ _("Log") }}</h3>
106 {% module Log(log) %}
107 {% end %}
108 {% end block %}