Download
This commit is contained in:
parent
dc13ef503c
commit
5bcc40d573
5 changed files with 105 additions and 12 deletions
|
|
@ -39,6 +39,11 @@ html, body {
|
|||
<span>
|
||||
{% for element in path %}/{{ element }}{% endfor %}
|
||||
</span>
|
||||
{% match current_entry %}
|
||||
{% when Entry::Directory(dir) %}
|
||||
{% when Entry::File(file) %}
|
||||
<a href="/download/{{ repo_hash|safe }}/{{ file.path }}">Download file</a>
|
||||
{% endmatch %}
|
||||
<div id="content">
|
||||
{{ content|safe }}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue