1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

added markdown file preview;improved file-view ui;modified pdf view

This commit is contained in:
llj
2012-07-27 19:53:49 +08:00
parent cc4211d284
commit 0207e1e162
5 changed files with 106 additions and 13 deletions

View File

@@ -19,11 +19,12 @@ import settings
EMPTY_SHA1 = '0000000000000000000000000000000000000000'
PREVIEW_FILEEXT = {
'Text': ('ac', 'am', 'bat', 'c', 'cc', 'cmake', 'cpp', 'css', 'diff', 'h', 'html', 'java', 'js', 'json', 'less', 'make', 'markdown', 'org', 'php', 'properties', 'py', 'rb', 'scala', 'script', 'sh', 'sql', 'txt','text', 'vi', 'vim'),
'Text': ('ac', 'am', 'bat', 'c', 'cc', 'cmake', 'cpp', 'css', 'diff', 'h', 'html', 'java', 'js', 'json', 'less', 'make', 'org', 'php', 'properties', 'py', 'rb', 'scala', 'script', 'sh', 'sql', 'txt','text', 'vi', 'vim'),
'Image': ('gif', 'jpeg', 'jpg', 'png'),
'SVG': ('svg',),
'Document': ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx'),
'PDF': ('pdf',),
'Markdown': ('markdown', 'md'),
}
def go_permission_error(request, msg=None):