From 845e34a29724f2cfa685c0fa8f1ac73cb86d6c40 Mon Sep 17 00:00:00 2001 From: Konrad Mohrfeldt Date: Sun, 24 Jun 2012 22:53:15 +0200 Subject: [PATCH] refactor css and html more contrast and slightly more spacing improve font readability add encoding to html switch to html5 doctype --- servefile | 56 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/servefile b/servefile index b6649cb..864dfcc 100755 --- a/servefile +++ b/servefile @@ -329,35 +329,41 @@ class DirListingHandler(FileBaseHandler): def sendDirectoryListing(self, path, head): """ Generate a directorylisting for path and send it """ - header = """ + header = """ + Index of %(path)s -

Index of %(path)s

-
- - +

Index of %(path)s

+
+
NameLast ModifiedSizeType
+ + + + + + + + + """ % {'path': posixpath.normpath(urllib.unquote(self.path))} - footer = """
NameLast ModifiedSizeType
-
servefile %(version)s
+ footer = """ + """ % {'version': __version__} content = [] @@ -385,10 +391,10 @@ class DirListingHandler(FileBaseHandler): fileType = "Directory" content.append(""" - %s - %s - %s - %s + %s + %s + %s + %s """ % (urllib.quote(item), item, lastModified, fileSize, fileType))