From 304e84eba50fd7ff27fad8cdd99048e79a98d321 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 3 May 2017 21:55:45 +0300 Subject: [PATCH] Fix templates --- autoindex.py | 1 + filelist.tpl | 43 +++++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/autoindex.py b/autoindex.py index ae9c80d..991bf08 100644 --- a/autoindex.py +++ b/autoindex.py @@ -5,6 +5,7 @@ from mimetypes import guess_type base_hosts = [ 'drop.bakatrouble.pw', + '127.0.0.1.xip.io:8080', ] diff --git a/filelist.tpl b/filelist.tpl index 36f8f29..0ad8cdd 100644 --- a/filelist.tpl +++ b/filelist.tpl @@ -13,12 +13,12 @@ position: relative; } table tbody tr a { - display: block; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; + /*display: block;*/ + /*position: absolute;*/ + /*top: 0;*/ + /*left: 0;*/ + /*right: 0;*/ + /*bottom: 0;*/ } @@ -41,31 +41,34 @@ % if path: - - - - - ../ + + + + + ../ + % end % for item in lst: - + % if item.isdir: - - - - {{ item.name }}/ + + + + {{ item.name }}/ + % else: - - - - {{ item.name }} [{{ guess_type(item.name)[0] }}] + + + + {{ item.name }} [{{ guess_type(item.name)[0] }}] + {{ format_size(item.size) }} {{ format_date(item.created) }}