1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 22:01:06 +00:00

Add file icon

This commit is contained in:
xiez
2012-05-17 23:11:46 +08:00
parent 3ed66222f9
commit 27f714c4a8
12 changed files with 25 additions and 9 deletions

View File

@@ -131,10 +131,23 @@ SEAFILE_VERSION = '0.9.2'
# Add supported file extensions and file icon name.
# Icons will show in repo page.
SUPPORTED_FILE_EXT = {
'txt' : 'foo.jpg',
'pdf' : '',
'default' : '',
FILEEXT_ICON_MAP = {
# pdf file
'pdf' : 'file-extension-pdf-icon-24.png',
# document file
'doc' : 'document-word-icon-24.png',
'docx' : 'document-word-icon-24.png',
# ppt file
'ppt' : 'document-powerpoint-icon-24.png',
'pptx' : 'document-powerpoint-icon-24.png',
# music file
'mp3' : 'File-Music-icon-24.png',
# picture file
'jpg' : 'File-Pictures-icon-24.png',
'jpeg' : 'File-Pictures-icon-24.png',
'png' : 'File-Pictures-icon-24.png',
# normal file and unkown file
'default' : 'File-icon-default-24.png',
}
try: