change counts

This commit is contained in:
sylor_huang@126.com
2020-07-03 15:14:25 +08:00
parent 04f98f1c10
commit 281889ebae
7 changed files with 24 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
json.tags_count @tags_count
json.branches_count @branches_count
json.commits_count @commits_count
json.version_releasesed_count @project.releases_size(current_user.try(:id), "released") #已发行的版本
if @result
json.size replace_bytes_to_b(number_to_human_size(@result['size'].to_i*1024))
end