diff options
-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>" |