Merge "Enable sorting by size in containers pane"

This commit is contained in:
Jenkins 2016-12-01 06:29:48 +00:00 committed by Gerrit Code Review
commit b8a2b2ba2f
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class PseudoFolder(base.APIDictWrapper):
@property
def bytes(self):
return None
return 0
@property
def content_type(self):

View File

@ -98,7 +98,7 @@
'{$ item.name $}</a><span ng-if="item.is_object">{$ item.name $}</span>'
})
.append({
id: 'size', priority: 1,
id: 'bytes', priority: 1, title: gettext('Size'),
template: '<span ng-if="item.is_object">{$item.bytes | bytes$}</span>' +
'<span ng-if="item.is_subdir" translate>Folder</span>'
});