On Fri, 13 Apr 2018, s...@apache.org wrote:

Date: Fri, 13 Apr 2018 01:31:26 +0200
From: s...@apache.org
To: general@attic.apache.org
Subject: svn commit: r1829018 - /attic/site/docs/scripts/attic_filter.lua

Sebb,

  please DON'T change this stuff ; you just broke it.

  HPP

Author: sebb
Date: Thu Apr 12 23:31:26 2018
New Revision: 1829018

URL: http://svn.apache.org/viewvc?rev=1829018&view=rev
Log:
Prettify

Modified:
   attic/site/docs/scripts/attic_filter.lua

Modified: attic/site/docs/scripts/attic_filter.lua
URL: 
http://svn.apache.org/viewvc/attic/site/docs/scripts/attic_filter.lua?rev=1829018&r1=1829017&r2=1829018&view=diff
==============================================================================
--- attic/site/docs/scripts/attic_filter.lua (original)
+++ attic/site/docs/scripts/attic_filter.lua Thu Apr 12 23:31:26 2018
@@ -17,14 +17,15 @@ function output_filter(r)

    -- add header:
    local host = r.hostname:match("^([^.]+)") -- get TLP part of hostname
+    local name = host:gsub("^%l", string.upper) -- Prettify (TODO: look up 
real name)
    local sty1 = 'font-size:x-large;padding:15px;color:white;background:red;' ;
    local sty2 = 'color:white' ;
    coroutine.yield ( ([[
      <div style='%s'>
-        Project <i>%s</i> is retired. See %s's
+        Project <i>%s</i> has retired. For details please refer to its
        <a style='%s' href="https://attic.apache.org/projects/%s.html";>
-        attic page</a>.
-      </div>]]):format(sty1, host, host, sty2, host) )
+        Attic page</a>.
+      </div>]]):format(sty1, name, sty2, host) )
    -- spit out the actual page
    while bucket do
        coroutine.yield(bucket)




------------------------------------------------------------   _
Henk P. Penning, ICT-beta                 R Uithof MG-403    _/ \_
Faculty of Science, Utrecht University    T +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL          F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl     \_/

Reply via email to