Fix presentation of ignorable files
Committed 725fba
--- a/webint_code/templates/project/index.html
+++ b/webint_code/templates/project/index.html
<h2>Files</h2>
$ files = sorted(repo.files)
$ prev_file = None
- $ known_files = [f for f in files if f.name in ignorable_files]
+ $ known_files = [f for f in files if str(f).partition("/")[0] in ignorable_files]
<p style=font-size:.8em>\
$for file in known_files:
$ file, is_dir, _ = str(file).partition("/")
$continue
<a style=color:#888 href=/projects/$project/files/$file>$file</a>\
$if is_dir:
- /
+ /\
$ prev_file = file
$if not loop.last:
,
</p>
$ prev_file = None
<ul class=files>
- $ unique_files = [f for f in files if f.name not in ignorable_files]
+ $ unique_files = [f for f in files if str(f).partition("/")[0] not in ignorable_files]
$for file in unique_files:
$ file, is_dir, _ = str(file).partition("/")
$if file == prev_file: