Compare commits
2 Commits
44cb528687
...
f067850ab6
Author | SHA1 | Date |
---|---|---|
Dendy | f067850ab6 | |
Dendy | bc385e4af3 |
|
@ -46,9 +46,8 @@ def index(path):
|
|||
|
||||
if os.path.isdir(internal_path):
|
||||
_, dirs, files = next(os.walk(internal_path))
|
||||
files = filter(lambda x: not x.endswith(".php"), files)
|
||||
files = filter(lambda x: not x.startswith("."), files)
|
||||
dirs = filter(lambda x: not x.startswith("."), dirs)
|
||||
files = sorted(filter(lambda x: not x.startswith("."), files))
|
||||
dirs = sorted(filter(lambda x: not x.startswith("."), dirs))
|
||||
|
||||
return (
|
||||
render_template(
|
||||
|
|
|
@ -3,8 +3,11 @@
|
|||
{% block title %}{{ path }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
{% if path != "/" %}
|
||||
<a href=".."><--</a>
|
||||
<br /><br />
|
||||
{% endif %}
|
||||
|
||||
{% for dir in dirs %}
|
||||
<a href="{{ path_join(path, dir) }}">{{ dir }}</a><br />
|
||||
|
|
Loading…
Reference in New Issue