mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 15:08:22 +00:00
Fix typo
This commit is contained in:
parent
3d1f2ba50c
commit
aa432c6a25
@ -150,6 +150,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if filetype == 'Unkown' %}
|
{% if filetype == 'Unknown' %}
|
||||||
$('#file-view').html('<p>该类型文件无法在线查看。<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=download">下载</a></p>');
|
$('#file-view').html('<p>该类型文件无法在线查看。<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=download">下载</a></p>');
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
2
utils.py
2
utils.py
@ -240,7 +240,7 @@ def valid_previewed_file(filename):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
fileExt = os.path.splitext(filename)[1][1:]
|
fileExt = os.path.splitext(filename)[1][1:]
|
||||||
return FILEEXT_TYPE_MAP.get(fileExt) or 'Unkown'
|
return FILEEXT_TYPE_MAP.get(fileExt) or 'Unknown'
|
||||||
|
|
||||||
def get_file_revision_id_size (commit_id, path):
|
def get_file_revision_id_size (commit_id, path):
|
||||||
"""Given a commit and a file path in that commit, return the seafile id
|
"""Given a commit and a file path in that commit, return the seafile id
|
||||||
|
Loading…
Reference in New Issue
Block a user