Re: svn commit: r1829018 - /attic/site/docs/scripts/attic_filter.lua

2018-04-12 Thread sebb
On 13 April 2018 at 01:04, Henk P. Penning <penn...@uu.nl> wrote:
> 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.

I did not break it.

It was svnpubsub that borked the workspace.

I have reapplied the patch and it is now working.

>   HPP
>
>> Author: sebb
>> Date: Thu Apr 12 23:31:26 2018
>> New Revision: 1829018
>>
>> URL: http://svn.apache.org/viewvc?rev=1829018=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=1829017=1829018=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 ( ([[
>>   
>> -Project %s is retired. See %s's
>> +Project %s has retired. For details please refer to its
>> https://attic.apache.org/projects/%s.html;>
>> -attic page.
>> -  ]]):format(sty1, host, host, sty2, host) )
>> +Attic page.
>> +  ]]):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 UniversityT +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 \_/


Re: svn commit: r1829018 - /attic/site/docs/scripts/attic_filter.lua

2018-04-12 Thread Henk P. Penning

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=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=1829017=1829018=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 ( ([[
  
-Project %s is retired. See %s's
+Project %s has retired. For details please refer to its
https://attic.apache.org/projects/%s.html;>
-attic page.
-  ]]):format(sty1, host, host, sty2, host) )
+Attic page.
+  ]]):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 UniversityT +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 \_/


svn commit: r1829018 - /attic/site/docs/scripts/attic_filter.lua

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

URL: http://svn.apache.org/viewvc?rev=1829018=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=1829017=1829018=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 ( ([[
   
-Project %s is retired. See %s's
+Project %s has retired. For details please refer to its
 https://attic.apache.org/projects/%s.html;>
-attic page.
-  ]]):format(sty1, host, host, sty2, host) )
+Attic page.
+  ]]):format(sty1, name, sty2, host) )
 -- spit out the actual page
 while bucket do
 coroutine.yield(bucket)