<div class="navbar-brand">
<a class="navbar-item is-size-4" href="/">
<strong>
- {% if request.path.startswith("/projects/location") %}
+ {% if request.path.startswith("/location") %}
{% module IPFireLogo("Location") %}
{% elif hostname.startswith("fireinfo.") %}
{% module IPFireLogo("Fireinfo") %}
{% end %}
{# Location #}
- {% if request.path.startswith("/projects/location") %}
+ {% if request.path.startswith("/location") %}
<a class="navbar-item is-tab
- {% if request.path == "/projects/location/how-to-use" %}is-active{% end %}"
- href="/projects/location/how-to-use">
+ {% if request.path == "/location/how-to-use" %}is-active{% end %}"
+ href="/location/how-to-use">
{{ _("How To Use") }}
</a>
<a class="navbar-item is-tab
- {% if request.path.startswith("/projects/location/download") %}is-active{% end %}"
- href="/projects/location/download">
+ {% if request.path.startswith("/location/download") %}is-active{% end %}"
+ href="/location/download">
{{ _("Download") }}
</a>
{% block content %}
<h1 class="text-center my-5">
- <a class="text-white" href="/projects/location/lookup/{{ address }}">{{ address }}</a>
+ <a class="text-white" href="/location/lookup/{{ address }}">{{ address }}</a>
</h1>
<section>
</a>
</li>
<li>
- <a href="#">
- {{ _("Projects") }}
- </a>
- </li>
- <li>
- <a href="/projects/location">
+ <a href="/location">
{{ _("Location") }}
</a>
</li>
</a>
</li>
<li>
- <a href="#">
- {{ _("Projects") }}
- </a>
- </li>
- <li>
- <a href="/projects/location">
+ <a href="/location">
{{ _("Location") }}
</a>
</li>
{{ _("Home") }}
</a>
</li>
- <li>
- <a href="#">
- {{ _("Projects") }}
- </a>
- </li>
<li class="is-active">
<a href="#" aria-current="page">{{ _("Location") }}</a>
</li>
<div class="container">
<p class="has-text-centered px-2 py-1">
{{ _("We have detected you visiting us from %s.") % format_country_name(address.country_code) }}
- <a href="/projects/location/lookup/{{ address }}">{{ _("Learn More") }}</a>
+ <a href="/location/lookup/{{ address }}">{{ _("Learn More") }}</a>
</p>
</div>
</section>
</div>
<div class="buttons">
- <a class="button is-light" href="/projects/location/how-to-use">
+ <a class="button is-light" href="/location/how-to-use">
{{ _("How To Use") }}
</a>
</a>
</li>
<li>
- <a href="#">
- {{ _("Projects") }}
- </a>
- </li>
- <li>
- <a href="/projects/location">
+ <a href="/location">
{{ _("Location") }}
</a>
</li>
<div>
<p class="heading">Geo Location Database</p>
<p class="title">
- <a href="/projects/location">
+ <a href="/location">
{{ _("IPFire Location") }}
</a>
</p>
(r"/.well-known/change-password", auth.WellKnownChangePasswordHandler),
# Projects
- (r"/projects/location/?", location.IndexHandler),
- (r"/projects/location/download", StaticHandler, { "template" : "location/download.html" }),
- (r"/projects/location/how\-to\-use", StaticHandler, { "template" : "location/how-to-use.html" }),
- (r"/projects/location/lookup/(.+)", location.LookupHandler),
+ (r"/location/?", location.IndexHandler),
+ (r"/location/download", StaticHandler, { "template" : "location/download.html" }),
+ (r"/location/how\-to\-use", StaticHandler, { "template" : "location/how-to-use.html" }),
+ (r"/location/lookup/(.+)", location.LookupHandler),
# Single-Sign-On for Discourse
(r"/sso/discourse", auth.SSODiscourse),