]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/location/lookup.html
location: Update layout to Bulma
[ipfire.org.git] / src / templates / location / lookup.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Location of %s") % address }}{% end block %}
4
5 {% block container %}
6 <section class="hero is-primary">
7 <div class="hero-body">
8 <div class="container">
9 <nav class="breadcrumb is-medium" aria-label="breadcrumbs">
10 <ul>
11 <li>
12 <a href="/">
13 {{ _("Home") }}
14 </a>
15 </li>
16 <li>
17 <a href="#">
18 {{ _("Projects") }}
19 </a>
20 </li>
21 <li>
22 <a href="/projects/location">
23 {{ _("Location") }}
24 </a>
25 </li>
26 <li class="is-active">
27 <a href="#" aria-current="page">{{ _("Lookup %s") % address }}</a>
28 </li>
29 </ul>
30 </nav>
31
32 <h1 class="title is-1">{{ _("Lookup %s") % address }}</h1>
33 </div>
34 </div>
35 </section>
36
37 <section class="section">
38 <div class="container">
39 <div class="columns is-vcentered">
40 <div class="column is-7 has-text-centered">
41 <div class="block">
42 <p class="heading">{{ _("Network") }}</p>
43 <p class="title">{{ address.network }}</p>
44 </div>
45
46 <div class="block">
47 <p class="heading">{{ _("Autonomous System") }}</p>
48 <p class="title">
49 {{ address.autonomous_system or ("AS%s" % address.asn if address.asn else _("N/A")) }}
50 </p>
51 </div>
52
53 {% if address.country_code %}
54 <div class="block">
55 <p class="heading">{{ _("Country") }}</p>
56 <p class="title">
57 {{ format_country_name(address.country_code) }}
58 </p>
59 </div>
60 {% end %}
61
62 <div class="tags">
63 {% if address.is_anonymous_proxy() %}
64 <span class="tag">
65 {{ _("Anonymous Proxy") }}
66 </span>
67 {% end %}
68
69 {% if address.is_satellite_provider() %}
70 <span class="tag">
71 {{ _("Satellite Provider") }}
72 </span>
73 {% end %}
74
75 {% if address.is_anycast() %}
76 <span class="tag">
77 {{ _("Anycast") }}
78 </span>
79 {% end %}
80 </div>
81 </div>
82
83 <div class="column">
84 {% if address.country_code %}
85 <div class="box">
86 {% module Map(address.country_code) %}
87 </div>
88 {% end %}
89 </div>
90 </div>
91
92 {% if blacklists %}
93 <nav class="panel">
94 <p class="panel-heading">
95 {{ _("Blacklists") }}
96 </p>
97
98 {% for bl in sorted(blacklists) %}
99 {% if blacklists[bl] %}
100 {% set code, reason = blacklists[bl] %}
101
102 <div class="panel-block {% if code %}is-active{% end %}">
103 <span class="panel-icon">
104 {% if code %}
105 <i class="fa-solid fa-ban" aria-hidden="true"></i>
106 {% else %}
107 <i class="fa-solid fa-check" aria-hidden="true"></i>
108 {% end %}
109 </span>
110
111 <div>
112 <p>{{ bl }}</p>
113
114 {% if reason %}
115 <p class="has-text-danger">{{ reason }}</p>
116 {% end %}
117 </div>
118 </div>
119 {% end %}
120 {% end %}
121 </nav>
122 {% end %}
123 </div>
124 </section>
125 {% end block %}