diff --git a/templates/repo_file_get.html b/templates/repo_file_get.html index bbb72c3d57..a7a6b9740e 100644 --- a/templates/repo_file_get.html +++ b/templates/repo_file_get.html @@ -150,6 +150,6 @@ }); }); {% endif %} -{% if filetype == 'Unkown' %} +{% if filetype == 'Unknown' %} $('#file-view').html('

该类型文件无法在线查看。下载

'); {% endif %} diff --git a/utils.py b/utils.py index 9d3b6e6cf2..c2b9bd1bb8 100644 --- a/utils.py +++ b/utils.py @@ -240,7 +240,7 @@ def valid_previewed_file(filename): """ 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): """Given a commit and a file path in that commit, return the seafile id