diff options
author | onefang | 2019-11-13 22:10:32 +1000 |
---|---|---|
committer | onefang | 2019-11-13 22:10:32 +1000 |
commit | 2d6e2f8a8b06399a6afdf1a73d4093adb0f07ea7 (patch) | |
tree | 0e115f74b76c53980bade9e9e861b930e45073a7 /apt-panopticon-report-web.lua | |
parent | Polish the web page a bit. (diff) | |
download | apt-panopticon-2d6e2f8a8b06399a6afdf1a73d4093adb0f07ea7.zip apt-panopticon-2d6e2f8a8b06399a6afdf1a73d4093adb0f07ea7.tar.gz apt-panopticon-2d6e2f8a8b06399a6afdf1a73d4093adb0f07ea7.tar.bz2 apt-panopticon-2d6e2f8a8b06399a6afdf1a73d4093adb0f07ea7.tar.xz |
Some more sprucing up of the email and web reports.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon-report-web.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index 75f2895..1981def 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua | |||
@@ -190,8 +190,9 @@ local m = {} | |||
190 | 190 | ||
191 | local file, e = io.open("results/Report-web.html", "w+") | 191 | local file, e = io.open("results/Report-web.html", "w+") |
192 | if nil == file then C("opening mirrors file - " .. e) else | 192 | if nil == file then C("opening mirrors file - " .. e) else |
193 | file:write( "<html><head>\n" .. | 193 | file:write( "<html><head><title>apt-panopticon results</title>\n" .. |
194 | '</head><body bgcolor="black" text="white" alink="red" link="blue" vlink="purple">' .. | 194 | '</head><body bgcolor="black" text="white" alink="red" link="blue" vlink="purple">' .. |
195 | "<h1>Welcome to the apt-opticon results page.</h1>\n" .. | ||
195 | "<p>Check time: " .. os.date("!%a %b %d %T %Z %Y") .. "</p>\n" .. | 196 | "<p>Check time: " .. os.date("!%a %b %d %T %Z %Y") .. "</p>\n" .. |
196 | "<p>The full list of Devuan package mirrors is available at the URL: " .. | 197 | "<p>The full list of Devuan package mirrors is available at the URL: " .. |
197 | "<a href='https://pkgmaster.devuan.org/mirror_list.txt'>https://pkgmaster.devuan.org/mirror_list.txt</a><br>\n" .. | 198 | "<a href='https://pkgmaster.devuan.org/mirror_list.txt'>https://pkgmaster.devuan.org/mirror_list.txt</a><br>\n" .. |
@@ -268,6 +269,9 @@ if nil == file then C("opening mirrors file - " .. e) else | |||
268 | "</p>\n" | 269 | "</p>\n" |
269 | ) | 270 | ) |
270 | file:write(dumpTableHTML(m, "", "")) | 271 | file:write(dumpTableHTML(m, "", "")) |
271 | file:write( "\n<br>\n\n</body></html>\n") | 272 | file:write( "\n<br>\n\n" .. |
273 | "<p>The <a href='Report-email.txt'>email report</a>.</p>" .. | ||
274 | "<p>All <a href='../results'>the logs and other output</a>.</p>" .. | ||
275 | "</body></html>\n") | ||
272 | file:close() | 276 | file:close() |
273 | end | 277 | end |