1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-19 17:39:39 +00:00

Fix bug when showing update file error.

This commit is contained in:
killing 2012-10-12 17:05:50 +08:00
parent 7021b83508
commit 28d86558e1
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,11 @@
<div class="narrow-panel">
<h3>更新文件
{% for name, link in zipped %}
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> /
{% if not forloop.last %}
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> /
{% else %}
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a>
{% endif %}
{% endfor %}
失败:
</h3>

View File

@ -535,7 +535,7 @@ def update_file_error(request, repo_id):
code = int(err)
err_msg = upload_error_msg(code)
return render_to_response('upload_file_error.html', {
return render_to_response('update_file_error.html', {
'repo': repo,
'zipped': zipped,
'err_msg': err_msg,