Indicate pseudo-folders in containers panel
The column that shows size of Objects is empty for pseudo folders. We now indicate that this is a pseudo-folder. Column does not have a column header so should not be confusing. Also, show the size if the object is of size 0, (thanks Tihomir) Closes-Bug: #1260859 Change-Id: I1ac233f5b964befa3d4f36c9a3d309383d691d28
This commit is contained in:
parent
2b83767c09
commit
58feb1a0fd
@ -366,8 +366,9 @@ def sanitize_name(name):
|
||||
|
||||
|
||||
def get_size(obj):
|
||||
if obj.bytes:
|
||||
return filters.filesizeformat(obj.bytes)
|
||||
if obj.bytes is None:
|
||||
return _("pseudo-folder")
|
||||
return filters.filesizeformat(obj.bytes)
|
||||
|
||||
|
||||
def get_link_subfolder(subfolder):
|
||||
|
Loading…
x
Reference in New Issue
Block a user