From 08ac08718b427d3a5d3b20b8a7e458fff0d0b5d4 Mon Sep 17 00:00:00 2001 From: MasterofJOKers Date: Mon, 11 Jan 2016 08:41:25 +0100 Subject: [PATCH] List view allows sorting by "Last Modified", "Name", "Size" This is implemented in JavaScript, because for implementing it in Python, the concept of creating the directory listing view would have to be changed. --- servefile | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/servefile b/servefile index f086bc9..b409f65 100755 --- a/servefile +++ b/servefile @@ -407,9 +407,9 @@ class DirListingHandler(FileBaseHandler): - - - + + + @@ -417,6 +417,82 @@ class DirListingHandler(FileBaseHandler): """ % {'path': os.path.normpath(urllib.unquote(self.path))} footer = """
NameLast ModifiedSizeNameLast ModifiedSize Type
+ """ % {'version': __version__} content = []