[Piuparts-commits] rev 243 - piatti/org/piuparts.debian.org/htdocs piatti/org/piuparts.debian.org/htdocs/images trunk trunk/debian
Holger Levsen
holger at alioth.debian.org
Sun Mar 15 18:08:44 UTC 2009
Author: holger
Date: 2009-03-15 18:08:43 +0000 (Sun, 15 Mar 2009)
New Revision: 243
Added:
piatti/org/piuparts.debian.org/htdocs/images/
piatti/org/piuparts.debian.org/htdocs/images/debian.png
piatti/org/piuparts.debian.org/htdocs/images/openlogo-nd-50.png
piatti/org/piuparts.debian.org/htdocs/images/red-lowerleft.png
piatti/org/piuparts.debian.org/htdocs/images/red-lowerright.png
piatti/org/piuparts.debian.org/htdocs/images/red-upperleft.png
piatti/org/piuparts.debian.org/htdocs/images/red-upperright.png
piatti/org/piuparts.debian.org/htdocs/images/valid-html401.png
Removed:
piatti/org/piuparts.debian.org/htdocs/valid-html401.png
Modified:
piatti/org/piuparts.debian.org/htdocs/index.html
trunk/debian/changelog
trunk/piuparts-report.py
Log:
- improve look.
Added: piatti/org/piuparts.debian.org/htdocs/images/debian.png
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/images/debian.png (rev 0)
+++ piatti/org/piuparts.debian.org/htdocs/images/debian.png 2009-03-15 18:08:43 UTC (rev 243)
@@ -0,0 +1,26 @@
+PNG
+
+
+IHDR ³ = iÌÏ pHYs H H FÉk> éIDATxÚí tMÇÇJ%±æÔ¦!ö5 b-U
+ÈAKi
"©]ÄÚJµ4øÓÖ©RGHÄ¡ÖÖ¥-bH,HOÿûwûrïÌÜyïÝ÷^þéû4çy;sgæ3¿e¶j^ZÅ*$ÑX@_)Êz¿ço+V`æöÕ%Û÷ï´a <{öÌËÈÈP»Àb"°~¡¼xñ")))00°k×®æ¯Jß·o½½}qq±é°(óp¨FFNNÎáÃçÏߪU+Ík6lÙªñäÉøøøæÍ¥WZUE2^)¯~ì|ʪY1t¿~ýÞ~ûmMIñ÷÷7Ý{ß¾};22rÞ¼y¾¾¾ÕªUÞ¦M]N2e£ÈÈÏÏGh(²dÉÓ½·V«={¶.jQ\ Ms§c!üØû<Üg%£ìرÃ"d.ÅG}dj2 p&Ød¤6÷m%£ä*.E'öMTT©ß>,,F¬Á^P±hæ_cµ&éÞ½;±o:dê·ÏÍ͵±±!>jÔ(uË"ÂÚl|QfÄB2b)2 ï¼óyÈøv>ÿ,Ô!cÊ)$£Cf#ãÿàxeDÊ.¦%ãÔ©Sf¨···9ÉàHk;©ì¹æ##//Ïð÷÷'îçç÷Ò*V2äòóÏ?[{×J+2Y¾|¹KQ\\ñ÷Ágq½J2$ùC233yÄ~ûí7½È@?TÁ`ÉÏÏ_ºté½{÷ôªéÃukúâÅÿ>¼uëVâ=z$Æ.EV«ùì³ÏÄL]±±±ñôô:u*mÜÜÜU«Vyyy'Rñå A6lØÀØêÁIFaa!Ú½õÖ[ºÉÜÜÜе÷ïßçoztä;w¢££Gmoooggf¤þüùéÓ§,Y2tèPÆ2SÍ5}||-[vîÜ9}AAOÅÅÅ-X° I&È
+cU÷¯.\
+
+rrr"®!àŲ²²xÉ@O888h6<9s¦|(...[¶l1³gϺ»»3ò·µµEzt!±<|Ñ#FèÙ³g½zõtuuu¥0nÜ8t¹¾MקO'N0ZïäÉÁÁÁx`ÜJ&E2 L2äR«V½{÷*À[¶l©1Zd@Õ¯__ß1&ä§HÊ¢ÍJÄÛÛøÎèÆ éÖ$}QQÑöíÛÅ}*I
+hFAPõ#,À1gqåËßµkT¬XÑx,Þ{ï=h]böïß%lX¶ß}÷^d¤¤¤pb!È!Cï¼qãFþ¥»üQ£ v48Ð2ÐøÐ(zU½zõ[·nÉHJJªT©*UJ Öçüùóò ¨-Ôfbb"'°Öl#"råÊÁÒ=MùÖ$A&O,7VRQuvv6ÍâÓìÈ4 8he¨[ÃÃÄÀß\´hÆ~;½¨ï¿ÿ>±¿QÑ[Jý&æ³
+uÍCÆúõë
+hx/^¿<|UN2 ³fÍb«n×7¢èL6¦6h¾```Ã
+%T
+ëV´×ÿ1}útÚ(±ÜÆ£ÂÃÃk×®ÍIÆܹså)aÂwî$ìÿO ±±±<dHØ*âiÚ>EÄhüd$''KA8qÖõë×=êFÇcFF@@ mX
+ çF >Ò#
+¢µª %ÈÀxVĤÍ5C'1üä?üFÄÐtñâÅ´aÝ:\× ññÇ°A»¢u 'oÞ¼ùÝwße´zQhJ]3f?0ób8::~ýõ×(©µoß?Ê7O!\bÔMGôaÁúöÔÁKE²ï޽˦9É3gq@<}úù A=÷äÉ6ºdË«`Ç_ðÄ%,]º¾Ç_asQÏBBx9/ÃCcÈ!F¥=
aó_æ_~Q¬°;DMÆÎ|íÚµÄ;~ü80U´wõêUF,*7(úû«ï~Ç.]ºØ´i1=â«=Ý1ÚM§WdüñÇ´ d¡
+ñññÄ"ا§§G8]Á&jù7ß|C{ÐÓÓÓH2'êEÆ¡Côrt
µ #((æâòÔÇËËK¢{CÈW8!1aÂE2`¡ÙAD"ÄgkÔ¨!f ã~P}ûö±Ë¢Å5%Èèܹ³^æÍ AÜçââÂ?ѯHF÷îÝ3ÿàhKVÌ@ƶmÛT!ÃÆÆ=$¸ÈP¹rebÌ͹¨H±N:ñäOâµ=Ýy*zéf#fÖõ%ºbY~~~
+d .bÚµksÖGb_|ñ
Ád8;;+P1sƳd)66,$$¤´pL±,ÚôÕ?dÀÉçtÁ&n&± ¡o¿|}íñI¬ALÎß÷¶Ï9¶fͯJ
+ÂÀ3f¨BzD2hǼ¬?ýô±-ZãâÆ28w9Ð"ö
ªEøCÔªU+Øh&ì-CÆÊ+)Æoj2E2øϵÔÔT8ËFV¶ÌAÛªYJÈh×®1EC4ÜÛ*Uª_Ù2K¯¯¯ùÉÃZEéÝ»7ªÀbþüùjU¶Ì1vìXóÁFÍd°gf[¶lý×_¥ëm¦¸t1tèPSû¶¶¶Î
+RKF^^^õêÕ6m§»¿ÄQ«iÉP1j¥Á9ÓÅÓ¡»õM/2¦NJLéááÁ^ÿÿ £uëÖÿ2êÔ©#¼bÅ5~2=999æéRuëÖÑö}¨Em±AZä«ê<d=z,88XñM¢¢¢J´9ÐråÊ¥¤¤ð´,ñÎ9P;;;õN\níß¿¿$åîÝ»yÈ !&»~ýºÙÖZÕ!#55æBK иOZÌÌLbþåËØróqéÒ%âã¡¡¡û3$d=¸ ??ßàÞ²Z6eËÞöÂ&ι¸ïùóç´}¿ÿþ»eÉ >.?"ÆIF×®]åi6lÈó2}ûö-Edà?Úi§víÚñ,Ѩè÷"nçÔ¨q¬d»5%RµjÕ3ñC\!²$D(h{Eë(ß>O$ãûï¿7`»¢È`o2â9j+]s /·jJNUËeõêÕ<d:ug²È8{ö,ñ üø¯:rùòeöË0f-FƵk×hïí$ÒL#$--MLVTTÔ¢Eb²ºuëêuId`ÐOäÒÈ7oì^N>ÍX ·OOOÚkõéÓv}E||<í´§Fvë#t-e¿~ýhƦ#ãÆÄxÓsîöûòË/É7nL;CÃ>übI2Ø[(,?NsáÂ
Zµj1½="îäO>áÙG.èFÜ=ÝClº®baa¡1dÐA |3QFFqªÐÔdôïß44ûø¶Ã¬Y³öïßßÁÁÁǽå7Ò/[¶Îà={hK{÷îÁûI,NÜcDÑ4e !áQA"
+_Ö9stçæoY±bñh+<dp*`OÀ)
+MsÌ1Cò60=zô`çÖ¶mÛ
=z*D8ßøv=Â
+â¾pÚ-a42ÒÓÓaøøø0ÿij³³³ÍÓF¦§^TPlÀ=85jÔ
+&â-%·oßæ¿ÈÆƦAD×lÛ¶mB´[]\\Ö¬Yõu}þüùÈÈÈaÃÑÁ¸Ðì^½zIR~ûí·5kq2>ÿüs)&Ô÷fÐÐPÚ¨uuu%îÑE¬èèèhäÎääd!7ÆQ"~iÒ¤ íQ:vìȹ.¨Õj%wy)Ü|4eF%rww7l"Gpød@<Èz@#CC¿ª+++ËÃÃþîa¬ê%~ú©¢óË [-ÝQܳ42 .ñ éyN"Ñ.©Ïªnpìë%iß¾ýÍ7_2ïaúô)ü/ûU ãÌ3Æ0.ùõ×_y 8F>'O?²uëVƵR¢´iÓ&))I\ø¥¹ âHÐnݺÑ6˱÷ܹs.ô0]K¾õcÝÏÏfñ0ho° -Ji8þ÷0íõ½J< '+áÒîرcÄú'h{ØAÝ»oØÂE5ô°´éÂêÆî,"DZ`/w5ÐGí~äÈFubbbÕ®@Ò°÷.ÃÁôòòéÂç°°0ÉÙ¯+W®¬|-ëׯ?þFöîÝogD"
+ìÙ¤I¼½½ÝIxoÌ1«V3$¿
+ß@!oܸmD#<Õ¨Q#¡úúú"KIIQ%¢ÅÚAWaØ ÑëÖ£=ÀÇìÙ³ñV½{÷»uÛ·o'®¤ Á
ÆLLLDæÇþà\b³RSSñ=ÚùxI£ïÙ×â¯k×®Ò_»v
+=(|FHgÿüóO¤ù/2Äm[rA IEND®B`
\ No newline at end of file
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/debian.png
___________________________________________________________________
Name: svn:mergeinfo
+
Added: piatti/org/piuparts.debian.org/htdocs/images/openlogo-nd-50.png
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/images/openlogo-nd-50.png (rev 0)
+++ piatti/org/piuparts.debian.org/htdocs/images/openlogo-nd-50.png 2009-03-15 18:08:43 UTC (rev 243)
@@ -0,0 +1,8 @@
+PNG
+
+
+IHDR 2 = Ø·ÊV 3PLTEÿÿÿÇ 6ËCãûïòê³ñ¿ÍÕ@høßæÜ`ôÏÙí¯ÀÎ OÒ0\àpæ§ÙPuÀø¬ bKGD H pHYs ÒÝ~ü tIMEÒG ãõ JIDATxVI D ÿí$6:Ö©)ÊÍÒCdX|\ÁD¾xÐ[ÿNSi`ͳ
@Ы;ÆÁW°$¹ý@!ÏIG¯t#jDÃЮYò2ÄÃöaùÅ_¯òàΰ´zεcó"ä]®OÎ~.Gç2SEwÆbcF2ÅßLd×xÙfþaP[ÁsÚ>¦0à ²ÅI¹£¦ôéè`P?È*¶r
+vy®å³é)ã*éëE¬âÂ{ÛSkùlWÌí=éͳèpâ§Y¼9#TÅÛm=!¨Ý4+êÅ-
+{å¨~Lm{-0©µx´^·¦â_GY«7XQ'J¿`ªÁWìØSÁÓX)*NZ·m]'òF©ñ¦86h_¡XÂ
+¤T3B¶£¾R «ÆÁXFc¥Là?ß½ç£kT¼ú<FM5¦RDNhêÆ2ÿëævÀ%våÙd*woNÁq&y¤JOpÍ3 vÚÒÜÇh;àmwv>^ÇìYñ?I cWeò-×[,«:ßm³oO¿þoÐeÈ#ò]ß÷5ûb½@~sM¨ I°ºb ?§¦Þ7¯_VOp>Ê!Oßôd;Óxáäý7j7m¾U¨Ã:àûÇÚÉïÂõó@BKö[V±äÍw
+7÷?sj¯<EÒ IEND®B`
\ No newline at end of file
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/openlogo-nd-50.png
___________________________________________________________________
Name: svn:mergeinfo
+
Added: piatti/org/piuparts.debian.org/htdocs/images/red-lowerleft.png
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/images/red-lowerleft.png (rev 0)
+++ piatti/org/piuparts.debian.org/htdocs/images/red-lowerleft.png 2009-03-15 18:08:43 UTC (rev 243)
@@ -0,0 +1,6 @@
+PNG
+
+
+IHDR óÿa gAMA ±üa bKGD ùC» pHYs d_ wIDAT8Ëc¸ÏøÌð72«fPfÀKÿVÊøб2~^¸Gÿà¹}e|Yq2@à
{=ep@àó½ 'l¢Ì R]Õ X°8
+PãK'
+ at v(Ùò(Âr1 Ê;Iå2 IEND®B`
\ No newline at end of file
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/red-lowerleft.png
___________________________________________________________________
Name: svn:mergeinfo
+
Added: piatti/org/piuparts.debian.org/htdocs/images/red-lowerright.png
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/images/red-lowerright.png (rev 0)
+++ piatti/org/piuparts.debian.org/htdocs/images/red-lowerright.png 2009-03-15 18:08:43 UTC (rev 243)
@@ -0,0 +1,4 @@
+PNG
+
+
+IHDR ÉV% gAMA ±üa bKGD ùC» pHYs d_ yIDAT(Ïc¸Ïø\Ì@®Æ¼áäk~¬A¾æþäkþб|Í?/Ü#Oósûªÿ @æ/+§ù
{ý` ǯdiþ¼pïd@´æ6ýGäØHfPà û(Í xE>À Ê DJ« $Ï&t mkÛ IEND®B`
\ No newline at end of file
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/red-lowerright.png
___________________________________________________________________
Name: svn:mergeinfo
+
Added: piatti/org/piuparts.debian.org/htdocs/images/red-upperleft.png
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/images/red-upperleft.png (rev 0)
+++ piatti/org/piuparts.debian.org/htdocs/images/red-upperleft.png 2009-03-15 18:08:43 UTC (rev 243)
@@ -0,0 +1,4 @@
+PNG
+
+
+IHDR ÉV% gAMA ±üa bKGD ùC» pHYs d_
IDAT(ÏcøO$øyáÞÿkþ¿ôoýÿX5ãÿÞðÿ4}Yqøÿsûªÿ÷Y10>^¸×cÕWóç
{ñj©ùãMDiÄÐL¬A~$E#fBS3(:HÕ×+ j&ǯpÍ $G¶fPZ%[3(;ÈÖL®F jlkpY IEND®B`
\ No newline at end of file
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/red-upperleft.png
___________________________________________________________________
Name: svn:mergeinfo
+
Added: piatti/org/piuparts.debian.org/htdocs/images/red-upperright.png
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/images/red-upperright.png (rev 0)
+++ piatti/org/piuparts.debian.org/htdocs/images/red-upperright.png 2009-03-15 18:08:43 UTC (rev 243)
@@ -0,0 +1,5 @@
+PNG
+
+
+IHDR óÿa gAMA ±üa bKGD ùC» pHYs d_ IDAT8Ëc¸ÏøÿoøÿǪÿ_ú·þÿбæÿÏ÷þ@`ÃÏí«þYq|`ø
{=^4 ?/ÜK üqÂ&ÊÀæ
+ aä0!Ë PÀRd âl@é"`aA dO ¼C H \L ÁÊ2t IEND®B`
\ No newline at end of file
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/red-upperright.png
___________________________________________________________________
Name: svn:mergeinfo
+
Copied: piatti/org/piuparts.debian.org/htdocs/images/valid-html401.png (from rev 222, piatti/org/piuparts.debian.org/htdocs/valid-html401.png)
===================================================================
(Binary files differ)
Property changes on: piatti/org/piuparts.debian.org/htdocs/images/valid-html401.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Name: svn:mergeinfo
+
Modified: piatti/org/piuparts.debian.org/htdocs/index.html
===================================================================
--- piatti/org/piuparts.debian.org/htdocs/index.html 2009-03-15 17:35:44 UTC (rev 242)
+++ piatti/org/piuparts.debian.org/htdocs/index.html 2009-03-15 18:08:43 UTC (rev 243)
@@ -1,36 +1,36 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>piatti.debian.org / piatti.cs.helsinki.fi</title>
- <link type="text/css" rel="stylesheet" href="style.css">
- <link rel="shortcut icon" href="/favicon.ico">
- </head>
- <body>
- <div align="center">
- <a href="http://www.debian.org/">
- <img src="http://www.debian.org/logos/openlogo-nd-50.png" border="0" hspace="0" vspace="0" alt=""></a>
- <a href="http://www.debian.org/">
- <img src="http://www.debian.org/Pics/debian.png" border="0" hspace="0" vspace="0" alt="Debian Project"></a>
- </div>
- <br />
- <table class="reddy" width="100%">
- <tr>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-upperleft.png" align="left" border="0" hspace="0" vspace="0"
- alt="" width="15" height="16"></td>
- <td rowspan="2" class="reddy">Policy is your friend. Trust the Policy. Love the Policy. Obey the Policy.</td>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-upperright.png" align="right" border="0" hspace="0" vspace="0"
+ <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>piatti.debian.org / piatti.cs.helsinki.fi</title>
+ <link type="text/css" rel="stylesheet" href="style.css">
+ <link rel="shortcut icon" href="/favicon.ico">
+ </head>
+ <body>
+ <div align="center">
+ <a href="http://www.debian.org/">
+ <img src="http://piuparts.debian.org/images/openlogo-nd-50.png" border="0" hspace="0" vspace="0" alt=""></a>
+ <a href="http://www.debian.org/">
+ <img src="http://piuparts.debian.org/images/debian.png" border="0" hspace="0" vspace="0" alt="Debian Project"></a>
+ </div>
+ <br />
+ <table class="reddy" width="100%">
+ <tr>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-upperleft.png" align="left" border="0" hspace="0" vspace="0"
+ alt="" width="15" height="16"></td>
+ <td rowspan="2" class="reddy">Policy is your friend. Trust the Policy. Love the Policy. Obey the Policy.</td>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-upperright.png" align="right" border="0" hspace="0" vspace="0"
alt="" width="16" height="16"></td>
- </tr>
- <tr>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-lowerleft.png" align="left" border="0" hspace="0" vspace="0"
- alt="" width="16" height="16"></td>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-lowerright.png" align="right" border="0" hspace="0" vspace="0"
- alt="" width="15" height="16"></td>
- </tr>
- </table>
+ </tr>
+ <tr>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-lowerleft.png" align="left" border="0" hspace="0" vspace="0"
+ alt="" width="16" height="16"></td>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-lowerright.png" align="right" border="0" hspace="0" vspace="0"
+ alt="" width="15" height="16"></td>
+ </tr>
+ </table>
<p>This machine is piatti.debian.org, generously donated by HP and
hosted at piuparts.cs.helsinki.fi by the University of Helsinki,
@@ -54,10 +54,10 @@
<hr>
<a href="http://validator.w3.org/check?uri=referer">
- <img border="0" src="valid-html401.png" alt="Valid HTML 4.01!" height="31" width="88">
+ <img border="0" src="/images/valid-html401.png" alt="Valid HTML 4.01!" height="31" width="88">
</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
- <img border="0" src="vcss.gif" alt="Valid CSS!" height="31" width="88">
+ <img border="0" src="/images/vcss.gif" alt="Valid CSS!" height="31" width="88">
</a>
</body>
Deleted: piatti/org/piuparts.debian.org/htdocs/valid-html401.png
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2009-03-15 17:35:44 UTC (rev 242)
+++ trunk/debian/changelog 2009-03-15 18:08:43 UTC (rev 243)
@@ -25,6 +25,7 @@
- print "unknown-package" bold in state reports.
- support sections in configuration file.
- provide links to logfiles in statistics page.
+ - improve look.
* control: depend on python (>>2.4) at least.
-- Holger Levsen <holger at debian.org> Tue, 10 Mar 2009 15:23:59 +0100
Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py 2009-03-15 17:35:44 UTC (rev 242)
+++ trunk/piuparts-report.py 2009-03-15 18:08:43 UTC (rev 243)
@@ -38,17 +38,57 @@
CONFIG_FILE = "piuparts-report.conf"
-LOG_LIST_PAGE_TEMPLATE = """
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html>
-<head>
- <title>%(title)s</title>
- <link rel="stylesheet" href="piuparts.css" type="text/css"/>
-</head>
-<body>
+HTML_HEADER = """
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+ <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>piatti.debian.org / piatti.cs.helsinki.fi</title>
+ <link type="text/css" rel="stylesheet" href="style.css">
+ <link rel="shortcut icon" href="/favicon.ico">
+ </head>
+ <body>
+ <div align="center">
+ <a href="http://www.debian.org/">
+ <img src="http://piuparts.debian.org/images/openlogo-nd-50.png" border="0" hspace="0" vspace="0" alt=""></a>
+ <a href="http://www.debian.org/">
+ <img src="http://piuparts.debian.org/images/debian.png" border="0" hspace="0" vspace="0" alt="Debian Project"></a>
+ </div>
+ <br />
+ <table class="reddy" width="100%">
+ <tr>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-upperleft.png" align="left" border="0" hspace="0" vspace="0"
+ alt="" width="15" height="16"></td>
+ <td rowspan="2" class="reddy">Policy is your friend. Trust the Policy. Love the Policy. Obey the Policy.</td>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-upperright.png" align="right" border="0" hspace="0" vspace="0"
+ alt="" width="16" height="16"></td>
+ </tr>
+ <tr>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-lowerleft.png" align="left" border="0" hspace="0" vspace="0"
+ alt="" width="16" height="16"></td>
+ <td class="reddy">
+ <img src="http://piuparts.debian.org/images/red-lowerright.png" align="right" border="0" hspace="0" vspace="0"
+ alt="" width="15" height="16"></td>
+ </tr>
+ </table>
+"""
+
+
+HTML_FOOTER = """
+<a href="http://validator.w3.org/check?uri=referer">
+ <img border="0" src="/images/valid-html401.png" alt="Valid HTML 4.01!" height="31" width="88">
+</a>
+<a href="http://jigsaw.w3.org/css-validator/check/referer">
+ <img border="0" src="/images/vcss.gif" alt="Valid CSS!" height="31" width="88">
+</a>
+
+</body>
+</html>
+"""
+
+
+LOG_LIST_BODY_TEMPLATE = """
<div class="main">
<h1>%(title)s</h1>
<p>%(preface)s</p>
@@ -58,51 +98,25 @@
%(loglist)s
</ul>
</div>
-</body>
-</html>
"""
-STATS_PAGE_TEMPLATE = """
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html>
-<head>
- <title>Statistics of packages</title>
- <link rel="stylesheet" href="piuparts.css" type="text/css"/>
-</head>
-<body>
+STATS_BODY_TEMPLATE = """
<div class="main">
<h1>Statistics of packages</h1>
<p>This page contains some statistics about packages piuparts is looking
at.</p>
%(table)s
</div>
-</body>
-</html>
"""
-STATE_PAGE_TEMPLATE = """
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html>
-<head>
- <title>%(state)s</title>
- <link rel="stylesheet" href="piuparts.css" type="text/css"/>
-</head>
-<body>
+STATE_BODY_TEMPLATE = """
<div class="main">
<h1>Packages in state "%(state)s"</h1>
<p>This page contains a list of package in state "%(state)s".</p>
%(list)s
</div>
-</body>
-</html>
"""
@@ -200,7 +214,7 @@
lines.append(line)
f = file(filename, "w")
- f.write(LOG_LIST_PAGE_TEMPLATE %
+ f.write(HTML_HEADER + LOG_LIST_BODY_TEMPLATE %
{
"title": html_protect(title),
"preface": preface,
@@ -208,7 +222,7 @@
"count": len(logs),
"versioncount": version_count,
"time": time.strftime("%Y-%m-%d %H:%M:%S %z"),
- })
+ } + HTML_FOOTER)
f.close()
@@ -328,7 +342,7 @@
st.get_total_packages()
table += "</table>\n"
write_file(os.path.join(config["output-dir"], "stats.html"),
- STATS_PAGE_TEMPLATE % { "table": table })
+ HTML_HEADER + STATS_BODY_TEMPLATE % { "table": table } + HTML_FOOTER)
for state in st.get_states():
logging.debug("Writing page for %s" % state)
@@ -347,10 +361,10 @@
list += "</ul>\n"
write_file(os.path.join(config["output-dir"],
"state-%s.html" % state),
- STATE_PAGE_TEMPLATE % {
+ HTML_HEADER + STATE_BODY_TEMPLATE % {
"state": html_protect(state),
"list": list
- })
+ } + HTML_FOOTER)
if __name__ == "__main__":
More information about the Piuparts-commits
mailing list