From 149aa691a6adb184be6e666a403bc62013f0245d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 25 Oct 2018 10:03:03 +0200 Subject: [PATCH 1/2] Display a per-view list of zones in the web interface The XSL stylesheet used by the web interface does not currently include any element which would cause a list of zones configured in each view to be displayed, making the "Zones" section of the web interface empty unless some zone has been configured with "zone-statistics full;" and queried. Since this can be confusing, modify the XSL stylesheet so that a list of zones configured in each view is displayed in the web interface. (cherry picked from commit aeda3f389e6da5ef81d2a66c2647a031a5203189) --- bin/named/bind9.xsl | 48 +++++++++++++++++++++++++++++++++++++++++++ bin/named/bind9.xsl.h | 48 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/bin/named/bind9.xsl b/bin/named/bind9.xsl index 890654c1209..8668482915a 100644 --- a/bin/named/bind9.xsl +++ b/bin/named/bind9.xsl @@ -198,6 +198,25 @@ background-color: #99ddff; } + table.zones { + border: 1px solid grey; + width: 500px; + } + table.zones th { + text-align: center; + border: 1px solid grey; + } + table.zones td { + text-align: center; + font-family: monospace; + } + table.zones td:nth-child(1) { + text-align: right; + } + table.zones td:nth-child(4) { + text-align: right; + } + .totals { background-color: rgb(1,169,206); color: #ffffff; @@ -705,6 +724,35 @@
+ + +

Zones for View

+ + + + + + + + + + + + + + + +
NameClassTypeSerial
+ + + + + + + +
+
+

Received QTYPES per view/zone

diff --git a/bin/named/bind9.xsl.h b/bin/named/bind9.xsl.h index 31425cfec98..b28e1b909f1 100644 --- a/bin/named/bind9.xsl.h +++ b/bin/named/bind9.xsl.h @@ -203,6 +203,25 @@ static char xslmsg[] = " background-color: #99ddff;\n" " }\n" "\n" + " table.zones {\n" + " border: 1px solid grey;\n" + " width: 500px;\n" + " }\n" + " table.zones th {\n" + " text-align: center;\n" + " border: 1px solid grey;\n" + " }\n" + " table.zones td {\n" + " text-align: center;\n" + " font-family: monospace;\n" + " }\n" + " table.zones td:nth-child(1) {\n" + " text-align: right;\n" + " }\n" + " table.zones td:nth-child(4) {\n" + " text-align: right;\n" + " }\n" + "\n" " .totals {\n" " background-color: rgb(1,169,206);\n" " color: #ffffff;\n" @@ -710,6 +729,35 @@ static char xslmsg[] = " \n" "
\n" "
\n" + " \n" + " \n" + "

Zones for View

\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
NameClassTypeSerial
\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "
\n" + "
\n" " \n" "

Received QTYPES per view/zone

\n" " \n" -- GitLab From 45c5968fc1753ed6f60ff06c3e30c728733f6437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 25 Oct 2018 10:03:03 +0200 Subject: [PATCH 2/2] Add CHANGES entry 5059. [bug] Display a per-view list of zones in the web interface. [GL #427] (cherry picked from commit d9c4068cc37608be1a3092634e7f564c3660d91f) --- CHANGES | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index c3cc275d121..12c28e6fadf 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5059. [bug] Display a per-view list of zones in the web interface. + [GL #427] + 5057. [protocol] Add support for ATMA. [GL #619] 5051. [doc] Documentation incorrectly stated that the -- GitLab