]> git.ipfire.org Git - people/jschlag/pbs.git/blame - data/templates/mirrors-detail.html
Remove weird translation backup file.
[people/jschlag/pbs.git] / data / templates / mirrors-detail.html
CommitLineData
f6e6ff79
MT
1{% extends "base.html" %}
2
3{% block title %}{{ _("Mirror: %s") % escape(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/{{ escape(mirror.hostname) }}">{{ escape(mirror.hostname) }}</a>
17 </li>
18 </ul>
19
20 <div class="page-header">
21 <h1>
22 {{ _("Mirror: %s") % escape(mirror.hostname) }}
23 <small>{{ _("hosted by %s") % escape(mirror.owner) }}</small>
24 </h1>
25 </div>
26
27 <div class="row">
28 <div class="span5">
29 <table class="table">
30 <tbody>
31 <tr>
32 <td>{{ _("Hostname") }}</td>
33 <td>{{ escape(mirror.hostname) }}</td>
34 </tr>
35
36 {% if current_user and current_user.has_perm("manage_mirrors") %}
37 <tr>
38 <td>{{ _("Contact") }}</td>
39 <td>
40 {% if mirror.contact %}
41 <a href="mailto:{{ escape(mirror.contact) }}">{{ escape(mirror.contact) }}</a>
42 {% else %}
43 {{ _("N/A") }}
44 {% end %}
45 </td>
46 </tr>
47 {% end %}
48 </tbody>
49 </table>
50
51 <h2>{{ _("Status information") }}</h2>
52 <table class="table">
53 <tbody>
54 <tr>
55 <td>{{ _("Status") }}</td>
56 <td>{{ mirror.status }}</td>
57 </tr>
58
59 <tr>
60 <td>{{ _("Last check") }}</td>
61 <td>
62 {% if mirror.last_check %}
63 {{ format_date(mirror.last_check) }}
64 {% else %}
65 {{ _("Never") }}
66 {% end %}
67 </td>
68 </tr>
69 </tbody>
70 </table>
71
72 {% if current_user and current_user.has_perm("manage_mirrors") %}
73 <div class="btn-toolbar">
74 <div class="btn-group pull-right">
75 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
76 {{ _("Action") }}
77 <span class="caret"></span>
78 </a>
79 <ul class="dropdown-menu">
80 <li>
81 <a href="/mirror/{{ escape(mirror.hostname) }}/edit">
82 <i class="icon-edit"></i>
83 {{ _("Edit settings") }}
84 </a>
85 </li>
86
87 <li class="divider"></li>
88 <li>
89 <a href="/mirror/{{ escape(mirror.hostname) }}/delete">
90 <i class="icon-trash"></i>
91 {{ _("Delete mirror") }}
92 </a>
93 </li>
94 </ul>
95 </div>
96 </div>
97 {% end %}
98 </div>
99
100 <div class="span7">
101 <h2>{{ _("Map") }}</h2>
102
103 {% if mirror.longitude and mirror.latitude %}
104 <p>
105 {{ _("The location of the mirror server is estimated by the IP address.") }}
106 </p>
107 <iframe width="525" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
108 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">
109 </iframe>
110 <p>
111 <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>
112 -
113 &copy; <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> contributors, CC-BY-SA
114 </p>
115 {% else %}
116 {{ _("The location of the mirror server could not be estimated.") }}
117 {% end %}
118 </div>
119 </div>
120{% end block %}