1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00
Files
seahub/templates/repo_update_file.html

41 lines
1.5 KiB
HTML
Raw Normal View History

2012-07-11 17:47:08 +08:00
{% extends "myhome_base.html" %}
{% load seahub_tags %}
{% block main_panel %}
{% if not cloud_mode or not no_quota %}
<div class="narrow-panel">
2012-07-11 17:47:08 +08:00
<h3>更新文件
{% for name, link in zipped %}
{% if not forloop.last %}
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> /
{% else %}
{{ name }}
{% endif %}
2012-07-19 11:23:21 +08:00
{% endfor %}
2012-07-11 17:47:08 +08:00
</h3>
2012-08-14 20:36:19 +08:00
<form id="upload-file-form" enctype="multipart/form-data" method="post" action="{{ update_url }}">
2012-07-11 17:47:08 +08:00
<input type="hidden" name="target_file" value="{{ target_file }}" />
2012-07-19 11:23:21 +08:00
<input type="file" name="file" id="file" />
<p>(文件应小于 {{ max_upload_file_size|filesizeformat }})</p>
2012-07-11 17:47:08 +08:00
<p id="error-msg" class="error">{{ error_msg }}</p>
<input id="upload-submit" type="submit" value="提交" class="submit" />
2012-07-11 17:47:08 +08:00
</form>
<div id="upload-progress" class="hide">
<p>上传进度: <span id="upload-progress-text">获取中,请稍侯...</span></p>
<div id="task-progress-bar" class="hide"></div>
<button id="upload-cancel">取消</button>
</div>
<iframe id="request-progress" class="hide"><!--for chrome--></iframe>
</div>
{% else %}
<div class="text-panel">
<p class="error">该同步目录所有者的空间已用完,无法更新</p>
2012-07-11 17:47:08 +08:00
</div>
{% endif %}
{% endblock %}
{% block extra_script %}
{% include 'snippets/file_upload_progress_js.html' %}
2012-07-11 17:47:08 +08:00
{% endblock %}