From 33d4f9305aba6ef58f390c150792135f403cd6e3 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 13 Nov 2019 21:39:45 +1000 Subject: Polish the web page a bit. --- apt-panopticon-report-web.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'apt-panopticon-report-web.lua') diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index 7bb48b0..75f2895 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua @@ -192,7 +192,12 @@ local file, e = io.open("results/Report-web.html", "w+") if nil == file then C("opening mirrors file - " .. e) else file:write( "\n" .. '' .. - "Check date: " .. os.date("!%a %b %d %T %Z %Y") .. "\n
\n\n") + "

Check time: " .. os.date("!%a %b %d %T %Z %Y") .. "

\n" .. + "

The full list of Devuan package mirrors is available at the URL: " .. + "https://pkgmaster.devuan.org/mirror_list.txt
\n" .. + "Please see below the current status of the Devuan Package Mirror network:

\n" .. + "

==== mirror status: ====

\n
\n" + ) for k, v in orderedPairs(mirrors) do local results = loadfile("results/" .. k .. ".lua")() file:write(" ") @@ -213,12 +218,12 @@ if nil == file then C("opening mirrors file - " .. e) else local sanity = "[skip]" local integrity = "[skip]" local updated = "[skip]" - file:write("\n") + file:write("\n") end - file:write( "
" .. k .. "http: " .. http .. "https: " .. https .. "DNS-RR: " .. - dns .. "Protocol: " .. protocol .. "URL-sanity: " .. sanity .. - "Integrity: " .. integrity .. "Updated: " .. updated .. "
http: " .. http .. " https: " .. https .. " DNS-RR: " .. + dns .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. + " Integrity: " .. integrity .. " Updated: " .. updated .. "
\n==== faulty mirrors: ====
\n
\n" .. faulty) - file:write( "\n
\nLast Failure: NOT WRITTEN YET
\n
") + file:write( "\n
\n

==== faulty mirrors: ====

\n" .. faulty) + file:write( "
\n
\n

==== DNS and logs: ====

\n") for k, v in pairs(mirrors) do local n = {} @@ -255,13 +260,12 @@ if nil == file then C("opening mirrors file - " .. e) else end m[k .. " DNS entries -"] = n end - file:write("
\n
\n
\n" .. - "

This DNS report lists each mirror, and the DNS entries for that mirror. " .. + file:write( "

This lists each mirror, and the DNS entries for that mirror. " .. + "The links point to the log files for each FDQN / IP combination that was checked. " .. "If a mirror has a CNAME, that CNAME is listed along with that CNAMEs DNS entries. " .. "deb.devuan.org is the DNS round robin, which points to the mirrors that are part of the DNS-RR. " .. "pkgmaster.devuan.org is the master mirror, all the others sync to it. " .. - "The links point to the log files for each FDQN / IP combination that was checked. " .. - "

\n

" + "

\n" ) file:write(dumpTableHTML(m, "", "")) file:write( "\n
\n\n\n") -- cgit v1.1