mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Images are now svg's from the 'Gnome Symbolic Icon Theme'.
This commit is contained in:
parent
49276c157c
commit
f5435802e7
59 changed files with 502 additions and 20 deletions
|
@ -56,11 +56,20 @@ modulejs.define('view/items', ['_', '$', 'core/settings', 'core/resource', 'core
|
|||
$date.data('time', item.time).text(format.formatDate(item.time));
|
||||
$size.data('bytes', item.size).text(format.formatSize(item.size));
|
||||
|
||||
|
||||
// if (item.isFolder()) {
|
||||
// $imgSmall.attr('src', resource.image('folder'));
|
||||
// $imgBig.attr('src', resource.image('folder')).width(48);
|
||||
// }
|
||||
|
||||
|
||||
if (item.isFolder() && _.isNumber(item.status)) {
|
||||
if (item.status === 200) {
|
||||
$html.addClass('page');
|
||||
$imgSmall.attr('src', resource.icon('folder-page'));
|
||||
$imgBig.attr('src', resource.icon('folder-page', true));
|
||||
// $imgSmall.attr('src', resource.image('folder-page'));
|
||||
// $imgBig.attr('src', resource.image('folder-page')).width(48);
|
||||
} else {
|
||||
$html.addClass('error');
|
||||
$label.append($(hintTemplate).text(' ' + item.status + ' '));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue