mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Merge pull request #1040 from pi-hole/fix/top_clients_blocked_tooltip
Top Clients (blocked only) tooltip should show total number of blocked queries
This commit is contained in:
@@ -522,7 +522,7 @@ function updateTopClientsChart() {
|
||||
url = "<a href=\"queries.php?client="+clientip+"\" title=\""+clientip+"\">"+clientname+"</a>";
|
||||
percentage = data.top_sources_blocked[client] / data.ads_blocked_today * 100;
|
||||
clientblockedtable.append("<tr> <td>" + url +
|
||||
"</td> <td>" + data.top_sources_blocked[client] + "</td> <td> <div class=\"progress progress-sm\" title=\""+percentage.toFixed(1)+"% of " + data.dns_queries_today + "\"> <div class=\"progress-bar progress-bar-blue\" style=\"width: " +
|
||||
"</td> <td>" + data.top_sources_blocked[client] + "</td> <td> <div class=\"progress progress-sm\" title=\""+percentage.toFixed(1)+"% of " + data.ads_blocked_today + "\"> <div class=\"progress-bar progress-bar-blue\" style=\"width: " +
|
||||
percentage + "%\"></div> </div> </td> </tr> ");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user