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:
Rob Raymond 2013-12-13 14:09:18 -07:00 committed by Akihiro Motoki
parent 2b83767c09
commit 58feb1a0fd
1 changed files with 3 additions and 2 deletions

View File

@ -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):