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) }}