1 {% extends
"../base.html" %}
3 {% block title %}{{ _(
"Mirror: %s") % mirror.hostname }}{% end block %}
6 <ul class=
"breadcrumb">
8 <a href=
"/">{{ _(
"Home") }}
</a>
9 <span class=
"divider">/
</span>
12 <a href=
"/mirrors">{{ _(
"Mirrors") }}
</a>
13 <span class=
"divider">/
</span>
16 <a href=
"/mirror/{{ mirror.hostname }}">{{ mirror.hostname }}
</a>
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>
25 <ul class=
"dropdown-menu">
27 <a href=
"/mirror/{{ mirror.hostname }}/edit">
28 <i class=
"icon-edit"></i>
29 {{ _(
"Edit settings") }}
33 <li class=
"divider"></li>
35 <a href=
"/mirror/{{ mirror.hostname }}/delete">
36 <i class=
"icon-trash"></i>
37 {{ _(
"Delete mirror") }}
44 <div class=
"page-header">
46 {{ _(
"Mirror: %s") % mirror.hostname }}
47 <small>{{ _(
"hosted by %s") % mirror.owner }}
</small>
53 <table class=
"table table-striped table-hover">
56 <td>{{ _(
"Hostname") }}
</td>
57 <td>{{ mirror.hostname }}
</td>
60 {% if current_user and current_user.has_perm(
"manage_mirrors") %}
62 <td>{{ _(
"Contact") }}
</td>
64 {% if mirror.contact %}
65 <a href=
"mailto:{{ mirror.contact }}">{{ mirror.contact }}
</a>
75 <h3>{{ _(
"Status information") }}
</h3>
76 <table class=
"table table-striped table-hover">
78 {% if not mirror.status ==
"OK" %}
80 <td>{{ _(
"Status") }}
</td>
81 <td>{{ mirror.status }}
</td>
84 {% if mirror.status ==
"ERROR" %}
86 <td>{{ _(
"HTTP Response Code") }}
</td>
87 <td>{{ mirror.last_check.http_status }}
</td>
91 {% if mirror.last_check and mirror.last_check.last_sync_at %}
93 <td>{{ _(
"Last sync") }}
</td>
95 {{ locale.format_date(mirror.last_check.last_sync_at) }}
101 <td>{{ _(
"Last check") }}
</td>
103 {% if mirror.last_check %}
104 {{ format_date(mirror.last_check.timestamp) }}
112 {% if mirror.average_response_time %}
114 <td>{{ _(
"Average Response Time") }}
</td>
116 {{
"%.2fms" % (mirror.average_response_time *
1000) }}
126 {{ _(
"The location of the mirror server could not be estimated.") }}
132 <h3>{{ _(
"Log") }}
</h3>
133 {% module Log(log) %}