[repo] modified file/dir icons, added 'width' for 'path'
BIN
media/img/file/excel.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 655 B |
BIN
media/img/file/file.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
BIN
media/img/file/music.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 1.2 KiB |
BIN
media/img/file/pic.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
media/img/file/ppt.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
media/img/file/word.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 2.9 KiB |
@@ -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):
|
||||
|
@@ -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() {
|
||||
|