fix: automatically detect binary files

This commit is contained in:
tdurieux
2018-08-08 11:08:17 +02:00
parent a176998c5a
commit 7eee5e3c52
2 changed files with 18 additions and 21 deletions
+2 -2
View File
@@ -24,14 +24,14 @@
<span class="path"><a href="{{ current_path|join("/") }}">Root</a></span>
{% for item in path %}
{% do current_path.append(item) %}
<span class="path"><a href="{{ current_path|join("/") }}">{{ item|remove_terms(repository) }}</a></span>
<span class="path"><a href="{{ current_path|join("/") }}">{{ item|remove_terms(repository, False) }}</a></span>
{% endfor %}
</div>
<div class="files">
{% for item in files %}
<div class="{{ item.type }} {% if item.path == current_file.name %}active{% endif %}">
<a href="/repository/{{ current_repository }}/{{ path_directory }}{% if path_directory|length > 0%}/{% endif %}{{ item.path }}{% if item.type == 'tree'%}/{% endif %}">
{{ item.path|remove_terms(repository) }}
{{ item.path|remove_terms(repository, False) }}
</a>
</div>
{% endfor %}