]> git.ipfire.org Git - people/jschlag/pbs.git/blame - src/templates/mirrors-detail.html
Remove Transifex configuration
[people/jschlag/pbs.git] / src / templates / mirrors-detail.html
CommitLineData
f6e6ff79
MT
1{% extends "base.html" %}
2
5aa556bf 3{% block title %}{{ _("Mirror: %s") % mirror.hostname }}{% end block %}
f6e6ff79
MT
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">
5aa556bf 16 <a href="/mirror/{{ mirror.hostname }}">{{ mirror.hostname }}</a>
f6e6ff79
MT
17 </li>
18 </ul>
19
25afb794
MT
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
f6e6ff79 44 <div class="page-header">
25afb794 45 <h2>
5aa556bf
MT
46 {{ _("Mirror: %s") % mirror.hostname }}
47 <small>{{ _("hosted by %s") % mirror.owner }}</small>
25afb794 48 </h2>
f6e6ff79
MT
49 </div>
50
51 <div class="row">
25afb794
MT
52 <div class="span6">
53 <table class="table table-striped table-hover">
f6e6ff79
MT
54 <tbody>
55 <tr>
56 <td>{{ _("Hostname") }}</td>
5aa556bf 57 <td>{{ mirror.hostname }}</td>
f6e6ff79
MT
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 %}
5aa556bf 65 <a href="mailto:{{ mirror.contact }}">{{ mirror.contact }}</a>
f6e6ff79
MT
66 {% else %}
67 {{ _("N/A") }}
68 {% end %}
69 </td>
70 </tr>
71 {% end %}
72 </tbody>
73 </table>
74
25afb794
MT
75 <h3>{{ _("Status information") }}</h3>
76 <table class="table table-striped table-hover">
f6e6ff79
MT
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>
f6e6ff79
MT
95 </div>
96
25afb794 97 <div class="span6">
f6e6ff79 98 {% if mirror.longitude and mirror.latitude %}
25afb794 99 <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
f6e6ff79
MT
100 src="http://www.openstreetmap.org/export/embed.html?bbox={{ mirror.longitude - 4 }},{{ mirror.latitude - 4 }},{{ mirror.longitude + 4 }},{{ mirror.latitude + 4 }}&amp;layer=mapquest&amp;marker={{ mirror.latitude }},{{ mirror.longitude }}" style="border: 1px solid black">
101 </iframe>
102 <p>
103 <a href="http://www.openstreetmap.org/?lat={{ mirror.latitude }}&amp;lon={{ mirror.longitude }}&amp;zoom=8&amp;layers=M&amp;mlat={{ mirror.latitude }}&amp;mlon={{ mirror.longitude }}" target="_blank">{{ _("View larger map") }}</a>
104 -
105 &copy; <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> contributors, CC-BY-SA
106 </p>
25afb794
MT
107 <p class="muted">
108 {{ _("The location of the mirror server is estimated by the IP address.") }}
109 </p>
f6e6ff79 110 {% else %}
25afb794
MT
111 <p class="muted">
112 {{ _("The location of the mirror server could not be estimated.") }}
113 </p>
f6e6ff79
MT
114 {% end %}
115 </div>
116 </div>
25afb794
MT
117
118 {% if log %}
119 <h3>{{ _("Log") }}</h3>
120 {% module Log(log) %}
121 {% end %}
f6e6ff79 122{% end block %}