1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

[repo] modified file/dir icons, added 'width' for 'path'

This commit is contained in:
llj
2014-02-25 18:34:47 +08:00
parent 69cc8f2e49
commit 945320c1d9
21 changed files with 27 additions and 20 deletions

BIN
media/img/file/excel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

BIN
media/img/file/file.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
media/img/file/music.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
media/img/file/pic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
media/img/file/ppt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
media/img/file/word.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -44,30 +44,30 @@ 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',
'doc' : 'word.png',
'docx' : 'word.png',
'ppt' : 'ppt.png',
'pptx' : 'ppt.png',
'xls' : 'excel.png',
'xlsx' : 'excel.png',
'txt' : 'txt.png',
'odt' : 'x_office_document-24.png',
'fodt' : 'x_office_document-24.png',
'ods' : 'x_office_spreadsheet-24.png',
'fods' : 'x_office_spreadsheet-24.png',
'odp' : 'x_office_presentation-24.png',
'fodp' : 'x_office_presentation-24.png',
'odt' : 'word.png',
'fodt' : 'word.png',
'ods' : 'excel.png',
'fods' : 'excel.png',
'odp' : 'ppt.png',
'fodp' : 'ppt.png',
# music file
'mp3' : 'music-icon-24.png',
'mp3' : 'music.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',
'jpg' : 'pic.png',
'jpeg' : 'pic.png',
'png' : 'pic.png',
'svg' : 'pic.png',
'gif' : 'pic.png',
'bmp' : 'pic.png',
# normal file and unkown file
'default' : 'file-icon-24.png',
'default' : 'file.png',
}
@register.filter(name='file_icon_filter')
def file_icon_filter(value):

View File

@@ -754,8 +754,15 @@ function encAndSubmitFile(file, fd, submit_url) {
// js on repo file list
var no_file_op_popup = true;
function setPathWidth() {
$('.path').width($('.repo-file-list-topbar').width() - $('.repo-op').width() - 10);
}
setPathWidth();
function dirOP() {
setPathWidth();
$('.path .dir-link').click(dirlinkClick);
$('.lsch').click(function() {