From f3a102c9b7f4ab5346e9a14d1fbad85c55ee19f7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Apr 2024 15:05:57 +0000 Subject: [PATCH] location: Create a page that explains how to report problems Signed-off-by: Michael Tremer --- Makefile.am | 3 +- src/templates/base.html | 6 ++ src/templates/location/report-a-problem.html | 64 ++++++++++++++++++++ src/web/__init__.py | 1 + 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 src/templates/location/report-a-problem.html diff --git a/Makefile.am b/Makefile.am index 3cd10730..95220c2e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/src/templates/base.html b/src/templates/base.html index c69c7b98..87f7242f 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -105,6 +105,12 @@ {{ _("Install") }} + + {{ _("Report A Problem") }} + + {# Main #} {% else %} {{ _("About") }} diff --git a/src/templates/location/report-a-problem.html b/src/templates/location/report-a-problem.html new file mode 100644 index 00000000..9c1080e4 --- /dev/null +++ b/src/templates/location/report-a-problem.html @@ -0,0 +1,64 @@ +{% extends "../base.html" %} + +{% block title %}{{ _("Report A Problem") }}{% end block %} + +{% block container %} +
+
+
+ + +

{{ _("Report A Problem") }}

+
+
+
+ +
+
+
+

+ 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: +

+ +
    + {% if not current_user %} +
  1. + If you don't have one already, + create an account. +
  2. + {% end %} + +
  3. + Gather as much information as possible around your problem. + The more information we have available, the faster we can fix it. +
  4. + +
  5. + + Create a ticket + on Bugzilla +
  6. +
+
+
+
+{% end block %} diff --git a/src/web/__init__.py b/src/web/__init__.py index 36de832a..dfc72eaa 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -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 -- 2.39.2