Commit 7260b794051d413c4975cd91554e4b72facb11fa Parent: 2dabf0478cfe0a5a9c18d31ee955dfc2ebabaf93 Author: mcol <mcol@posteo.net> Date: 2021-11-26 01:30:28 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-11-26 01:30:28 +0000 complete test for file test
test/templates/repo/file.html Modified
@@ -2,5 +2,14 @@ {%- block title -%}{{ file.path }}{%- endblock -%} {% block body %} -file +scope: file +file: {{ file }} +file.path: {{ file.path }} +file.href: {{ file.href }} +file.contents: {{ file.contents }} +file.mode: {{ file.mode }} +file.mode_octal: {{ file.mode_octal }} +file.mode_symbolic: {{ file.mode_symbolic }} +if file.is_directory then "directory" else "file": + {%- if file.is_directory %} "directory"{% else %} "file"{% endif %} {% endblock %}
test/expected/gitserve/file/test.templates.style.css.html Modified
@@ -1,2 +1,10 @@ test/templates/style.css -file +scope: file +file: test/templates/style.css +file.path: test/templates/style.css +file.href: test.templates.style.css.html +file.contents: 👄 +file.mode: Plain +file.mode_octal: 00644 +file.mode_symbolic: -rw-r--r-- +if file.is_directory then "directory" else "file": "file"