diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2024-01-01 14:31:12 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2024-01-01 14:31:26 -0800 |
commit | bc4bde474e3377c603c750d93f6484f44ceee7da (patch) | |
tree | a2915381830bd3a54f6ad194be1050c3a30d70e3 | |
parent | 27f3c272430470233a38201b21828bfda6ae76d7 (diff) | |
download | puppet-bc4bde474e3377c603c750d93f6484f44ceee7da.tar puppet-bc4bde474e3377c603c750d93f6484f44ceee7da.tar.gz puppet-bc4bde474e3377c603c750d93f6484f44ceee7da.tar.bz2 puppet-bc4bde474e3377c603c750d93f6484f44ceee7da.tar.xz puppet-bc4bde474e3377c603c750d93f6484f44ceee7da.zip |
Give the mirror summary page a title
Also, use CSS to highlight the colour summary.
-rwxr-xr-x | modules/mga-mirrors/files/check_mirrors_status | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status index e6255405..c0e6a53b 100755 --- a/modules/mga-mirrors/files/check_mirrors_status +++ b/modules/mga-mirrors/files/check_mirrors_status @@ -140,7 +140,7 @@ def format_age(ref_time, time) end def print_output(archs_per_distro, mirrors, ref_times, times) - puts "<html> + puts "<html><head><title>Mageia Mirror Status #{Time.now.strftime("%F")}</title> <style> td.broken {background-color:#FF0033;} td.bad {background-color:#FF9933;} @@ -151,12 +151,14 @@ td {text-align:center;} td.name {text-align:left;} td.sep {width:12px;} +table.legend td {padding:4px;} th {background-color:#EEEEEE;} </style> +</head> <body>" puts "Last checked on #{Time.now.strftime("%F %R")}<br/>" - puts "<table cellpadding='4px'><tr><td class='ok'>Up to date</td><td class='almost'>Less than 12h old</td><td class='bad'>Less than 2 days old</td><td class='broken'>Old or broken</td></tr></table>" + puts "<table class='legend'><tr><td class='ok'>Up to date</td><td class='almost'>Less than 12h old</td><td class='bad'>Less than 2 days old</td><td class='broken'>Old or broken</td></tr></table>" puts "<table><thead>" puts "<tr><td/>" puts "<td/><th>Base directory</th>" |