]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/base.html
changed support links to help
[ipfire.org.git] / src / templates / base.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <title>{{ hostname }} - {% block title %}{{ _("No title given") }}{% end block %}</title>
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <meta name="author" content="IPFire.org - IPFire Development Team" />
7
8 <meta name="keywords" content="Linux, Firewall, IPFire, Security, IPCop, Open Source, Free, ARM, VPN, Proxy, IDS, IPS" />
9
10 <link rel="icon" sizes="192x192" href="{{ static_url("img/apple-touch-icon-192x192-precomposed.png") }}">
11 {% for res in ("72x72", "76x76", "120x120", "144x144", "152x152", "180x180") %}
12 <link rel="apple-touch-icon-precomposed" sizes="{{ res }}" href="{{ static_url("img/apple-touch-icon-%s-precomposed.png" % res )}}">
13 {% end %}
14 <link rel="apple-touch-icon-precomposed" href="{{ static_url("img/apple-touch-icon-60x60-precomposed.png") }}">
15
16 <!-- styling stuff -->
17 <link rel="stylesheet" type="text/css" href="{{ static_url("main.css") }}" />
18 <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
20 {% block head %}{% end block %}
21 </head>
22
23 <body>
24 {% block container_large %}
25 <nav class="navbar" role="navigation" aria-label="main navigation">
26 <div class="container">
27 <div class="navbar-brand">
28 <a class="navbar-item" href="/">
29 {% if hostname.startswith("fireinfo.") %}
30 <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span><span class="is-size-4 has-text-weight-bold">Fireinfo</span>
31 {% elif hostname.startswith("nopaste.") %}
32 <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span><span class="is-size-4 has-text-weight-bold">Nopaste</span>
33 {% elif hostname.startswith("people.") %}
34 <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span><span class="is-size-4 has-text-weight-bold">People</span>
35 {% else %}
36 <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span>
37 {% end %}
38
39 {% if hostname.startswith("location.") %}
40 {{ _("Location") }}
41 {% elif hostname.startswith("wiki.") %}
42 {{ _("Wiki") }}
43 {% end %}
44 </a>
45 <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarMainMenu">
46 <span aria-hidden="true"></span>
47 <span aria-hidden="true"></span>
48 <span aria-hidden="true"></span>
49 </a>
50 </div>
51 <div class="navbar-menu" id="navbarMainMenu">
52 {% block menu %}
53 {% if hostname.startswith("www.") or hostname.startswith("dev.") %}
54
55 <div class="navbar-end">
56 <div class="navbar-item">
57 <a class="nav-link {% if request.path == "/about" %}active{% end %}" href="/about">{{ _("About") }}</a>
58 </div>
59
60 <div class="navbar-item">
61 <a class="nav-link {% if request.path == "/support" %}active{% end %}" href="/support">{{ _("Help") }}</a>
62 </div>
63
64 <div class="navbar-item">
65 <a class="nav-link {% if request.path.startswith("/blog") %}active{% end %}" href="/blog">{{ _("Blog") }}</a>
66 </div>
67
68 <div class="navbar-item">
69 <a class="nav-link {% if request.path == "/community" %}active{% end %}" href="/community">{{ _("Community") }}</a>
70 </div>
71
72 <div class="navbar-item">
73 <a class="nav-link {% if request.path.startswith("/download") %}active{% end %}" href="/download">{{ _("Download") }}</a>
74 </div>
75
76 <div class="navbar-item">
77 <button class="button is-primary" href="https://www.ipfire.org/donate">
78 <p class="has-text-centered has-text-weight-bold is-uppercase">
79 {{ _("Donate") }}
80 </p>
81 </button>
82 </div>
83 </div>
84
85
86
87 </div>
88 {% elif hostname == "fireinfo.ipfire.org" %}
89 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
90 aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
91 <span class="fas fa-bars"></span>
92 </button>
93
94 <div class="collapse navbar-collapse" id="navbar">
95 <ul class="navbar-nav ml-auto">
96 {% if current_user and current_user.is_staff() %}
97 <li class="nav-item">
98 <a class="nav-link {% if request.path.startswith("/admin") %}active{% end %}" href="/admin">
99 {{ _("Admin") }}
100 </a>
101 </li>
102 {% end %}
103
104 <li class="nav-item">
105 <a class="nav-link {% if request.path.startswith("/vendors") %}active{% end %}" href="/vendors">
106 {{ _("Vendors") }}
107 </a>
108 </li>
109 </ul>
110 </div>
111 {% elif hostname == "location.ipfire.org" %}
112 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
113 aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
114 <span class="fas fa-bars"></span>
115 </button>
116
117 <div class="collapse navbar-collapse" id="navbar">
118 <ul class="navbar-nav ml-auto">
119 <li class="nav-item">
120 <a class="nav-link {% if request.path == "/how-to-use" %}active{% end %}" href="/how-to-use">
121 {{ _("How To Use") }}
122 </a>
123 </li>
124
125 <li class="nav-item">
126 <a class="nav-link {% if request.path == "/download" %}active{% end %}" href="/download">
127 {{ _("Download") }}
128 </a>
129 </li>
130 </ul>
131
132 <a class="btn btn-primary ml-lg-2" href="https://www.ipfire.org/donate">
133 {{ _("Donate") }}
134 </a>
135 </div>
136 {% elif hostname == "nopaste.ipfire.org" %}
137 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
138 aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
139 <span class="fas fa-bars"></span>
140 </button>
141
142 <div class="collapse navbar-collapse" id="navbar">
143 <ul class="navbar-nav ml-auto">
144 <li class="nav-item">
145 <a class="nav-link" href="/?mode=upload">{{ _("Upload File") }}</a>
146 </li>
147 </ul>
148 </div>
149 {% elif hostname == "people.ipfire.org" %}
150 {% if current_user %}
151 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
152 aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
153 <span class="fas fa-bars"></span>
154 </button>
155
156 <div class="collapse navbar-collapse" id="navbar">
157 <ul class="navbar-nav ml-auto mr-3">
158 <li class="nav-item">
159 <a class="nav-link {% if request.path == "/users/%s" % current_user.uid %}active{% end %}" href="/users/{{ current_user.uid }}">
160 {{ _("My Profile") }}
161 </a>
162 </li>
163
164 {% if current_user.is_staff() %}
165 <li class="nav-item">
166 <a class="nav-link {% if request.path == "/users" %}active{% end %}" href="/users">
167 {{ _("Users") }}
168 </a>
169 </li>
170
171 <li class="nav-item">
172 <a class="nav-link {% if request.path.startswith("/groups") %}active{% end %}" href="/groups">
173 {{ _("Groups") }}
174 </a>
175 </li>
176
177 <li class="nav-item">
178 <a class="nav-link {% if request.path == "/stats" %}active{% end %}" href="/stats">
179 {{ _("Stats") }}
180 </a>
181 </li>
182 {% end %}
183
184 {% if current_user.has_sip() %}
185 <li class="nav-item">
186 <a class="nav-link {% if request.path.startswith("/conferences") %}active{% end %}" href="/conferences">
187 {{ _("Conferences") }}
188 </a>
189 </li>
190 {% end %}
191 </ul>
192
193 <form class="my-2 my-lg-0" action="/search" method="GET">
194 <input class="form-control form-control-sm mr-sm-2" type="search" name="q"
195 placeholder="{{ _("Search") }}" aria-label="{{ _("Search") }}" value="{% try %}{{ q }}{% except %}{% end %}">
196 </form>
197 </div>
198 {% end %}
199 {% elif hostname == "wiki.ipfire.org" %}
200 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
201 aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
202 <span class="fas fa-bars"></span>
203 </button>
204
205 <div class="collapse navbar-collapse" id="navbar">
206 <form class=" ml-auto my-2 my-lg-0" action="/search" method="GET">
207 <input class="form-control form-control-sm" type="search" name="q"
208 placeholder="{{ _("Search...") }}" aria-label="{{ _("Search") }}" value="{% try %}{{ q }}{% except %}{% end %}">
209 </form>
210
211 <a class="btn btn-primary ml-lg-2" href="https://www.ipfire.org/donate">
212 {{ _("Donate") }}
213 </a>
214 </div>
215 {% end %}
216 {% end block %}
217 </div>
218 </div>
219 </nav>
220
221 {% block container %}
222 <div class="container">
223 {% block content %}{% end block %}
224 </div>
225 {% end block %}
226 {% end block %}
227
228 {% block footer %}
229 <footer>
230 <div class="content">
231 <div class="container">
232 <hr>
233 <div class="columns">
234 <div class="column is-two-fifths">
235 <section class="section">
236 <p class="is-size-4">
237 <span class="has-text-weight-bold">IPFire</span><span class="has-text-primary has-text-weight-bold">_</span>People
238 </p>
239 <p>
240 Join the community and sign up for our newsletter
241 </p>
242
243 <button class="button is-primary is-outlined is-medium"><span class="has-text-black has-text-weight-bold">JOIN NOW</span></button>
244
245 </section>
246 </div>
247 <section class="section">
248 <div class="column is-one-fifth">
249 <button class="button is-ghost">
250 <a href="/about"><span class="is-underlined">{{ _("About") }}</span></a>
251 </button>
252 <br>
253 <button class="button is-ghost">
254 <a href="https://wiki.ipfire.org"><span class="is-underlined">{{ _("Wiki") }}</span></a>
255 </button>
256 <br>
257 <button class="button is-ghost">
258 <a href="/support"><span class="is-underlined">{{ _("Support") }}</span></a>
259 </button>
260 <br>
261 <button class="button is-ghost">
262 <a href="https://wiki.ipfire.org/devel"><span class="is-underlined">{{ _("Development") }}</span></a>
263 </button>
264 </div>
265 </section>
266 <section class="section">
267 <div class="column is-one-fifth">
268 <button class="button is-ghost">
269 <a href="/download"><span class="is-underlined">{{ _("Download") }}</span></a>
270 </button>
271 <br>
272 <button class="button is-ghost">
273 <a href="/blog"><span class="is-underlined">{{ _("Blog") }}</span></a>
274 </button>
275 <br>
276 <button class="button is-ghost">
277 <a href="https://community.ipfire.org/"><span class="is-underlined">{{ _("Community") }}</span></a>
278 </button>
279 <br>
280 <button class="button is-ghost">
281 <a href="/legal"><span class="is-underlined">{{ _("Legal") }}</span></a>
282 </button>
283 </div>
284 </section>
285 <section class="section">
286 <div class="column is-one-fifth">
287
288 <button class="button is-ghost">
289 <a href="https://twitter.com/ipfire"><span class="is-underlined">{{ _("Twitter") }}</span></a>
290 </button>
291 <br>
292 <button class="button is-ghost">
293 <a href="https://de.linkedin.com/company/ipfire"><span class="is-underlined">{{ _("LinkedIn") }}</span></a>
294 </button>
295 <br>
296 <button class="button is-primary is-medium" href="https://www.ipfire.org/donate">
297 <p class="has-text-centered has-text-weight-bold is-uppercase">
298 {{ _("Donate") }}
299 </p>
300 </button>
301
302 </div>
303 </div>
304 </section>
305 </div>
306 </div>
307 </div>
308 </footer>
309 {% end block %}
310
311 <script src="{{ static_url("js/jquery-3.6.0.min.js") }}"></script>
312 <script src="{{ static_url("js/site.js") }}"></script>
313 {% block javascript %}{% end block %}
314 </body>
315 </html>