You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2006/12/21 23:00:53 UTC
svn commit: r489471 - /httpd/mod_mbox/trunk/scripts/site-index.py
Author: pquerna
Date: Thu Dec 21 14:00:52 2006
New Revision: 489471
URL: http://svn.apache.org/viewvc?view=rev&rev=489471
Log:
Split the Site Index into two collumns like the old way did.
Modified:
httpd/mod_mbox/trunk/scripts/site-index.py
Modified: httpd/mod_mbox/trunk/scripts/site-index.py
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/scripts/site-index.py?view=diff&rev=489471&r1=489470&r2=489471
==============================================================================
--- httpd/mod_mbox/trunk/scripts/site-index.py (original)
+++ httpd/mod_mbox/trunk/scripts/site-index.py Thu Dec 21 14:00:52 2006
@@ -6,7 +6,7 @@
ROOT="/x1/mail-archives/mod_mbox"
tlps={}
-
+count = 0
for files in os.listdir(ROOT):
path = files
tlp = path[0:path.find('-')]
@@ -17,6 +17,7 @@
if not tlps.has_key(tlp):
tlps[tlp] = {}
tlps[tlp][list] = path
+ count = count + 1
print """<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
@@ -31,10 +32,14 @@
bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<h2>Welcome to the mail archives on mail-archives.apache.org.</h2>
+<table width="100%">
+<tr valign="top"><td>
<ul>
"""
keys = tlps.keys()
keys.sort()
+i = 0
+split = False
for tlp in keys:
print "<li><h3><a name='%s'>%s.apache.org lists:</a></h3>" % (tlp, tlp)
print "<ul>"
@@ -42,10 +47,18 @@
klist.sort()
for list in klist:
print " <li><a href='%s/'>%s@%s.apache.org</a></li>" % (tlps[tlp][list], list, tlp)
+ i = i + 1
print "</ul></li>"
+ if (i >= (count/2)) and split == False:
+ print """</ul></td><td><ul>"""
+ split = True
+
print """
</ul>
+</td>
+</tr>
+</table>
</body>
</html>
"""