Browse Source

fix: detail result delay

tags/v4.0.0^2
yystopf 4 years ago
parent
commit
b1884d30d5
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      app/views/repositories/detail.json.jbuilder

+ 8
- 0
app/views/repositories/detail.json.jbuilder View File

@@ -49,6 +49,14 @@ if @result[:repo]
json.empty @result[:repo]['empty']
json.full_name @result[:repo]['full_name']
json.private @result[:repo]['private']
else
json.size 0
json.ssh_url nil
json.clone_url nil
json.default_branch 'master'
json.empty nil
json.full_name nil
json.private !@project.is_public
end
json.license_name @project.license_name
json.branches_count @result[:branch_tag_total_count].present? ? (@result[:branch_tag_total_count]['branch_count'] || 0) : 0


Loading…
Cancel
Save