From: Michał Kępień Date: Thu, 25 Oct 2018 08:03:03 +0000 (+0200) Subject: Display a per-view list of zones in the web interface X-Git-Tag: v9.13.4~94^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aeda3f389e6da5ef81d2a66c2647a031a5203189;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/named/bind9.xsl b/bin/named/bind9.xsl index 4f3778ef591..0fe5750248f 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 50fd2ba3f24..8339fd3838f 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"