[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 file
|
||||||
'pdf' : 'pdf.png',
|
'pdf' : 'pdf.png',
|
||||||
# document file
|
# document file
|
||||||
'doc' : 'ms-word.png',
|
'doc' : 'word.png',
|
||||||
'docx' : 'ms-word.png',
|
'docx' : 'word.png',
|
||||||
'ppt' : 'ms-ppt.png',
|
'ppt' : 'ppt.png',
|
||||||
'pptx' : 'ms-ppt.png',
|
'pptx' : 'ppt.png',
|
||||||
'xls' : 'ms-excel.png',
|
'xls' : 'excel.png',
|
||||||
'xlsx' : 'ms-excel.png',
|
'xlsx' : 'excel.png',
|
||||||
'txt' : 'txt.png',
|
'txt' : 'txt.png',
|
||||||
'odt' : 'x_office_document-24.png',
|
'odt' : 'word.png',
|
||||||
'fodt' : 'x_office_document-24.png',
|
'fodt' : 'word.png',
|
||||||
'ods' : 'x_office_spreadsheet-24.png',
|
'ods' : 'excel.png',
|
||||||
'fods' : 'x_office_spreadsheet-24.png',
|
'fods' : 'excel.png',
|
||||||
'odp' : 'x_office_presentation-24.png',
|
'odp' : 'ppt.png',
|
||||||
'fodp' : 'x_office_presentation-24.png',
|
'fodp' : 'ppt.png',
|
||||||
# music file
|
# music file
|
||||||
'mp3' : 'music-icon-24.png',
|
'mp3' : 'music.png',
|
||||||
# picture file
|
# picture file
|
||||||
'jpg' : 'pic-icon-24.png',
|
'jpg' : 'pic.png',
|
||||||
'jpeg' : 'pic-icon-24.png',
|
'jpeg' : 'pic.png',
|
||||||
'png' : 'pic-icon-24.png',
|
'png' : 'pic.png',
|
||||||
'svg' : 'pic-icon-24.png',
|
'svg' : 'pic.png',
|
||||||
'gif' : 'pic-icon-24.png',
|
'gif' : 'pic.png',
|
||||||
'bmp' : 'pic-icon-24.png',
|
'bmp' : 'pic.png',
|
||||||
# normal file and unkown file
|
# normal file and unkown file
|
||||||
'default' : 'file-icon-24.png',
|
'default' : 'file.png',
|
||||||
}
|
}
|
||||||
@register.filter(name='file_icon_filter')
|
@register.filter(name='file_icon_filter')
|
||||||
def file_icon_filter(value):
|
def file_icon_filter(value):
|
||||||
|
@@ -754,8 +754,15 @@ function encAndSubmitFile(file, fd, submit_url) {
|
|||||||
// js on repo file list
|
// js on repo file list
|
||||||
var no_file_op_popup = true;
|
var no_file_op_popup = true;
|
||||||
|
|
||||||
|
function setPathWidth() {
|
||||||
|
$('.path').width($('.repo-file-list-topbar').width() - $('.repo-op').width() - 10);
|
||||||
|
}
|
||||||
|
setPathWidth();
|
||||||
|
|
||||||
function dirOP() {
|
function dirOP() {
|
||||||
|
|
||||||
|
setPathWidth();
|
||||||
|
|
||||||
$('.path .dir-link').click(dirlinkClick);
|
$('.path .dir-link').click(dirlinkClick);
|
||||||
|
|
||||||
$('.lsch').click(function() {
|
$('.lsch').click(function() {
|
||||||
|