#388: display file size

This commit is contained in:
Vokhmin Alexey V 2014-05-21 15:03:25 +04:00
parent 03e0c45316
commit 0d685810a3
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ json.contents (@contents.select(&:is_folder?) | @contents) do |content|
json.(content, :name)
json.is_folder content.is_folder?
json.size number_to_human_size(content.size) unless content.is_folder?
json.download_url content.download_url unless content.is_folder?
json.subpath content.subpath