diff --git a/scripts/pi-hole/js/search.js b/scripts/pi-hole/js/search.js
index b27110f6..a88dd030 100644
--- a/scripts/pi-hole/js/search.js
+++ b/scripts/pi-hole/js/search.js
@@ -48,16 +48,19 @@ function eventsource(partial) {
(numDomains > 0 ? ":" : ".") +
"
";
for (const domain of res.domains) {
+ const color = domain.type === "deny" ? "red" : "green";
result +=
" - " +
+ "' target='_blank'>" +
utils.escapeHtml(domain.domain) +
- "
" +
+ "
" +
domain.kind +
" " +
domain.type +
- " domain
added: " +
+ " domain
added: " +
utils.renderTimestamp(domain.date_added, "display") +
"
last modified: " +
utils.renderTimestamp(domain.date_modified, "display") +
@@ -88,7 +91,7 @@ function eventsource(partial) {
result +=
"Found " +
numAdlists +
- " adlist" +
+ " list" +
(numAdlists !== 1 ? "s" : "") +
" " +
verb +
@@ -99,12 +102,18 @@ function eventsource(partial) {
"
";
for (const address of Object.keys(grouped)) {
const adlist = grouped[address][0];
+ const color = adlist.type === "block" ? "red" : "green";
result +=
" - " +
utils.escapeHtml(address) +
- "
added: " +
+ "
" +
+ adlist.type +
+ " list" +
+ "
added: " +
utils.renderTimestamp(adlist.date_added, "display") +
"
last modified: " +
utils.renderTimestamp(adlist.date_modified, "display") +
@@ -122,12 +131,10 @@ function eventsource(partial) {
(adlist.comment !== null && adlist.comment.length > 0
? '
comment: "' + utils.escapeHtml(adlist.comment) + '"'
: "
no comment") +
- "
";
+ "
matching entries:
";
for (const adlists of grouped[address]) {
result +=
- " - " +
- utils.escapeHtml(adlists.domain) +
- "
";
+ " - " + utils.escapeHtml(adlists.domain) + "
";
}
result += "
";