mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
Fix bug
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
} else if (can_preview == 'True' && filetype == 'Image') {
|
||||
$('#file-content').replaceWith('<img src="{{ raw_path }}" width="550" height="450"></img>');
|
||||
} else {
|
||||
$('#file-content').html('无法识别该文件格式,<a class="op" href="">下载文件</a>。');
|
||||
$('#file-content').html('无法识别该文件格式,<a class="op" href="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=download">下载文件</a>。');
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user