diff --git a/error403.lp b/error403.lp new file mode 100644 index 00000000..d071669f --- /dev/null +++ b/error403.lp @@ -0,0 +1,26 @@ + + +
+
+

403

+
+

Oops! Access denied.

+

+ You don't have permission to access on this server.
+ Did you mean to go to your Pi-hole's dashboard instead? +

+
+
+
+ + diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index 39ff3a92..ba80c931 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -151,7 +151,8 @@ function initTable() { '" title="' + tooltip + '" class="breakall">' + - utils.escapeHtml(data.domain) + + utils.escapeHtml(data.unicode) + + (data.domain !== data.unicode ? " (" + utils.escapeHtml(data.domain) + ")" : "") + "" ); diff --git a/scripts/pi-hole/js/settings-api.js b/scripts/pi-hole/js/settings-api.js index caac6355..77e5dacb 100644 --- a/scripts/pi-hole/js/settings-api.js +++ b/scripts/pi-hole/js/settings-api.js @@ -191,7 +191,7 @@ $(function () { function deleteThisSession() { // This function is called when a red trash button is clicked // We get the ID of the current item from the data-del-id attribute - const thisID = parseInt(this.attr("data-del-id"), 10); + const thisID = parseInt($(this).attr("data-del-id"), 10); deleted = 0; deleteOneSession(thisID, 1, false); } diff --git a/style/themes/high-contrast-dark.css b/style/themes/high-contrast-dark.css index f529132e..354eb8f4 100644 --- a/style/themes/high-contrast-dark.css +++ b/style/themes/high-contrast-dark.css @@ -483,6 +483,11 @@ kbd { color: #808890; } +/* Used in error403 */ +.text-danger { + color: #f54; +} + .warning-count { color: #000; background: #f94;