diff options
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 62cb8a5..3703972 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua | |||
@@ -264,6 +264,11 @@ if nil == email then C("opening mirrors file - " .. e) else | |||
264 | email:close() | 264 | email:close() |
265 | end | 265 | end |
266 | 266 | ||
267 | local lnk = function(name, link) | ||
268 | if nil == link then link = name end | ||
269 | return name .."<a href='explanations.html#" .. link .. "'>*" | ||
270 | end | ||
271 | |||
267 | 272 | ||
268 | local colours = | 273 | local colours = |
269 | { | 274 | { |
@@ -365,8 +370,9 @@ if nil == web then C("opening mirrors file - " .. e) else | |||
365 | "<p>The time in the Updated column is how often the mirror updates itself.</p>" .. | 370 | "<p>The time in the Updated column is how often the mirror updates itself.</p>" .. |
366 | "<p>Mirrors with a <font style='background-color:dimgrey'>grey background</font> are not active (though may be usable as part of the DNS-RR).</p>\n" .. | 371 | "<p>Mirrors with a <font style='background-color:dimgrey'>grey background</font> are not active (though may be usable as part of the DNS-RR).</p>\n" .. |
367 | "<p>[<font color='grey'><b>skip</b></font>] means that the test hasn't been written yet.</p>\n" .. | 372 | "<p>[<font color='grey'><b>skip</b></font>] means that the test hasn't been written yet.</p>\n" .. |
368 | "<table>\n<tr><th></th><th>FTP</th><th>HTTP</th><th>HTTPS</th><th>RSYNC</th><th>DNS round robin</th>" .. | 373 | "<table>\n<tr><th></th><th>" .. lnk('FTP') .. "</a></th><th>" .. lnk('HTTP') .. "</th><th>" .. lnk('HTTPS') .. "</th><th>" .. lnk('RSYNC') .. "</th>" .. |
369 | "<th>Protocol</th><th>URL sanity</th><th>Integrity</th><th>Updated</th><th colspan='2'>Speed range</th></tr>\n" | 374 | "<th>" .. lnk('DNS round robin', 'DNS-RR') .. "</th><th>" .. lnk('Protocol') .. "</th><th>" .. lnk('URL sanity', 'URL-Sanity') .. "</th><th>" .. lnk('Integrity') .. "</th>" .. |
375 | "<th>" .. lnk('Updated') .. "</th><th colspan='2'>" .. lnk('Speed range', 'Speed') .. "</th></tr>\n" | ||
370 | ) | 376 | ) |
371 | for k, v in APT.orderedPairs(APT.mirrors) do | 377 | for k, v in APT.orderedPairs(APT.mirrors) do |
372 | local results = APT.collateAll(APT.mirrors, 'results', k) | 378 | local results = APT.collateAll(APT.mirrors, 'results', k) |
@@ -484,8 +490,10 @@ if nil == web then C("opening mirrors file - " .. e) else | |||
484 | "<p>NOTE - This is not fully probing the Debian mirrors, we just collect some data from any redirects to other servers. " .. | 490 | "<p>NOTE - This is not fully probing the Debian mirrors, we just collect some data from any redirects to other servers. " .. |
485 | "So this isn't a full set of tests.   Basically we don't know the shape of the Debian mirror infrastructure.</p>\n" .. | 491 | "So this isn't a full set of tests.   Basically we don't know the shape of the Debian mirror infrastructure.</p>\n" .. |
486 | "<p><font style='background-color:red; color:black'>EXPERIMENTAL CODE - this is even more experimental than the rest.</font></p>\n" .. | 492 | "<p><font style='background-color:red; color:black'>EXPERIMENTAL CODE - this is even more experimental than the rest.</font></p>\n" .. |
487 | "<table>\n<tr><th></th><th>FTP</th><th>HTTP</th><th>HTTPS</th><th>RSYNC</th><th>DNS round robin</th>" .. | 493 | |
488 | "<th>Protocol</th><th>URL sanity</th><th>Integrity</th><th>Updated</th><th colspan='2'>Speed range</th></tr>\n") | 494 | "<table>\n<tr><th></th><th>" .. lnk('FTP') .. "</a></th><th>" .. lnk('HTTP') .. "</th><th>" .. lnk('HTTPS') .. "</th><th>" .. lnk('RSYNC') .. "</th>" .. |
495 | "<th>" .. lnk('DNS round robin', 'DNS-RR') .. "</th><th>" .. lnk('Protocol') .. "</th><th>" .. lnk('URL sanity', 'URL-Sanity') .. "</th><th>" .. lnk('Integrity') .. "</th>" .. | ||
496 | "<th>" .. lnk('Updated') .. "</th><th colspan='2'>" .. lnk('Speed range', 'Speed') .. "</th></tr>\n") | ||
489 | for k, v in APT.orderedPairs(APT.debians) do | 497 | for k, v in APT.orderedPairs(APT.debians) do |
490 | local results = APT.collateAll(APT.debians, 'results', k) | 498 | local results = APT.collateAll(APT.debians, 'results', k) |
491 | local active = "" | 499 | local active = "" |