mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -04:00
Add initial theme support. Remove get_http_code.
This commit is contained in:
parent
0ce49c3535
commit
844b37d165
169 changed files with 29998 additions and 294 deletions
|
@ -56,14 +56,9 @@ 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() && _.isNumber(item.status)) {
|
||||
if (item.status === 200) {
|
||||
$html.addClass('page');
|
||||
$iconImg.attr('src', resource.icon('folder-page'));
|
||||
} else {
|
||||
$html.addClass('error');
|
||||
$label.append($(hintTemplate).text(' ' + item.status + ' '));
|
||||
}
|
||||
if (item.isFolder() && !item.isManaged) {
|
||||
$html.addClass('page');
|
||||
$iconImg.attr('src', resource.icon('folder-page'));
|
||||
}
|
||||
|
||||
if (item.isCurrentParentFolder()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue