]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: Create a page that explains how to report problems master
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Apr 2024 15:05:57 +0000 (15:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Apr 2024 15:07:18 +0000 (15:07 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/base.html
src/templates/location/report-a-problem.html [new file with mode: 0644]
src/web/__init__.py

index 3cd107301fd1f352a66a55a7ec4543d57aa63a54..95220c2e3d987f9bf9ce08a86fb04d60e75092c2 100644 (file)
@@ -264,7 +264,8 @@ templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules
 templates_location_DATA = \
        src/templates/location/index.html \
        src/templates/location/install.html \
-       src/templates/location/lookup.html
+       src/templates/location/lookup.html \
+       src/templates/location/report-a-problem.html
 
 templates_locationdir = $(templatesdir)/location
 
index c69c7b98b483c0689cccc620f81d394aa6f246dd..87f7242f4261eb42d2d2c4369030664e1f681365 100644 (file)
                                                                                {{ _("Install") }}
                                                                        </a>
 
+                                                                       <a class="navbar-item is-tab
+                                                                                       {% if request.path == "/location/report-a-problem" %}is-active{% end %}"
+                                                                                       href="/location/report-a-problem">
+                                                                               {{ _("Report A Problem") }}
+                                                                       </a>
+
                                                                {# Main #}
                                                                {% else %}
                                                                        <a class="navbar-item is-tab {% if request.path == "/about" %}is-active{% end %}" href="/about">{{ _("About") }}</a>
diff --git a/src/templates/location/report-a-problem.html b/src/templates/location/report-a-problem.html
new file mode 100644 (file)
index 0000000..9c1080e
--- /dev/null
@@ -0,0 +1,64 @@
+{% extends "../base.html" %}
+
+{% block title %}{{ _("Report A Problem") }}{% end block %}
+
+{% block container %}
+       <section class="hero is-light">
+               <div class="hero-body">
+                       <div class="container">
+                               <nav class="breadcrumb" aria-label="breadcrumbs">
+                                       <ul>
+                                               <li>
+                                                       <a href="/">
+                                                               {{ _("Home") }}
+                                                       </a>
+                                               </li>
+                                               <li>
+                                                       <a href="/location">
+                                                               {{ _("Location") }}
+                                                       </a>
+                                               </li>
+                                               <li class="is-active">
+                                                       <a href="#" aria-current="page">{{ _("Report A Problem") }}</a>
+                                               </li>
+                                       </ul>
+                               </nav>
+
+                               <h1 class="title">{{ _("Report A Problem") }}</h1>
+                       </div>
+               </div>
+       </section>
+
+       <section class="section">
+               <div class="container">
+                       <div class="content is-size-5">
+                               <p>
+                                       Although we aim for the highest accuracy when creating IPFire Location,
+                                       there is a chance that we are getting things wrong.
+                                       If you have discovered a potential problem in our database, it would
+                                       be great if you could report it to us. It is only a few steps:
+                               </p>
+
+                               <ol>
+                                       {% if not current_user %}
+                                               <li>
+                                                       If you don't have one already,
+                                                       create an <a href="/join">account</a>.
+                                               </li>
+                                       {% end %}
+
+                                       <li>
+                                               Gather as much information as possible around your problem.
+                                               The more information we have available, the faster we can fix it.
+                                       </li>
+
+                                       <li>
+                                               <a href="https://bugzilla.ipfire.org/enter_bug.cgi?product=Location%20Database&amp;component=Database">
+                                                       Create a ticket
+                                               </a> on Bugzilla
+                                       </li>
+                               </ol>
+                       </div>
+               </div>
+       </section>
+{% end block %}
index 36de832acb767e634404f47a3ecd76a923ff7dee..dfc72eaa1212e30f246913f2dc7d6bc99ebb17d1 100644 (file)
@@ -202,6 +202,7 @@ class Application(tornado.web.Application):
                        (r"/location/how\-to\-use/dns", StaticHandler, { "template" : "location/how-to-use/dns.html" }),
                        (r"/location/how\-to\-use/python", StaticHandler, { "template" : "location/how-to-use/python.html" }),
                        (r"/location/install", StaticHandler, { "template" : "location/install.html" }),
+                       (r"/location/report\-a\-problem", StaticHandler, { "template" : "location/report-a-problem.html" }),
                        (r"/location/lookup/(.+)", location.LookupHandler),
 
                        # Single-Sign-On for Discourse