1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

Move file extension icon map from settings to seahub_tags

This commit is contained in:
zhengxie
2012-12-05 21:32:55 +08:00
parent 0a25bf249a
commit b82971dc3d
2 changed files with 25 additions and 28 deletions

View File

@@ -140,33 +140,6 @@ AUTHENTICATION_BACKENDS = (
ACCOUNT_ACTIVATION_DAYS = 7
# Add supported file extensions and file icon name.
# Icons will show in repo page.
FILEEXT_ICON_MAP = {
# pdf file
'pdf' : 'pdf.png',
# document file
'doc' : 'ms-word.png',
'docx' : 'ms-word.png',
'ppt' : 'ms-ppt.png',
'pptx' : 'ms-ppt.png',
'xls' : 'ms-excel.png',
'xlsx' : 'ms-excel.png',
'txt' : 'txt.png',
'odf' : 'odf.png',
# music file
'mp3' : 'music-icon-24.png',
# picture file
'jpg' : 'pic-icon-24.png',
'jpeg' : 'pic-icon-24.png',
'png' : 'pic-icon-24.png',
'svg' : 'pic-icon-24.png',
'gif' : 'pic-icon-24.png',
'bmp' : 'pic-icon-24.png',
# normal file and unkown file
'default' : 'file-icon-24.png',
}
# File preview
FILE_PREVIEW_MAX_SIZE = 10 * 1024 * 1024