1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

Using ZIP to download dir

This commit is contained in:
zhengxie
2013-01-04 13:43:03 +08:00
parent c4a98d2bab
commit a5adb9ed1c
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@
</p> </p>
<div class="repo-op fright"> <div class="repo-op fright">
{% if user_perm and path != '/' %} {% if user_perm and path != '/' %}
<button data="{% url 'repo_download_dir' repo.id %}?p={{ path|urlencode }}" id="download-dir" class="op-btn">{% trans "Download"%}</button> <button data="{% url 'repo_download_dir' repo.id %}?p={{ path|urlencode }}" id="download-dir" class="op-btn">{% trans "ZIP"%}</button>
{% endif %} {% endif %}
{% if user_perm == 'rw' %} {% if user_perm == 'rw' %}
<button data="{{ SITE_ROOT }}repo/upload_file/{{repo.id}}/?p={{ path|urlencode }}" id="upload-file" class="op-btn">{% trans "Upload"%}</button> <button data="{{ SITE_ROOT }}repo/upload_file/{{repo.id}}/?p={{ path|urlencode }}" id="upload-file" class="op-btn">{% trans "Upload"%}</button>

View File

@@ -26,7 +26,7 @@
{% endfor %} {% endfor %}
</p> </p>
<div class="repo-op fright"> <div class="repo-op fright">
<button data="{% url 'repo_download_dir' repo.id %}?p={{ path|urlencode }}&t={{ token }}" id="download-dir" class="op-btn">{% trans "Download"%}</button> <button data="{% url 'repo_download_dir' repo.id %}?p={{ path|urlencode }}&t={{ token }}" id="download-dir" class="op-btn">{% trans "ZIP"%}</button>
</div> </div>
</div> </div>