Browse Source

修改仓库大小的显示

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
81191b59c2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/show.json.jbuilder

+ 1
- 1
app/views/repositories/show.json.jbuilder View File

@@ -29,7 +29,7 @@ json.fork_info do
end
end

json.size @result['size']
json.size number_to_human_size(@result['size'].to_i)
json.ssh_url @result['ssh_url']
json.clone_url @result['clone_url']
json.default_branch @result['default_branch']


Loading…
Cancel
Save