修改部分bug

This commit is contained in:
sylor_huang@126.com
2020-04-07 14:03:48 +08:00
parent aadfafa66c
commit 5e2d5d5654
114 changed files with 2651378 additions and 156 deletions

View File

@@ -9,3 +9,4 @@ json.is_public project.is_public
json.mirror_url project.repository&.mirror_url
json.last_update_time render_unix_time(project.updated_on)
json.time_ago time_from_now(project.updated_on)
json.forked_from_project_id project.forked_from_project_id

View File

@@ -13,6 +13,15 @@ json.permission render_edit_project_permission(current_user, @project) if curren
json.mirror_url @project&.repository.mirror_url
json.watched current_user&.watched?(@project)
json.praised current_user&.liked?(@project)
json.forked_from_project_id @project_fork_id
json.fork_info do
if @fork_project.present?
json.fork_form_name @fork_project.try(:name)
json.fork_project_user_login @fork_project_user.try(:login)
json.fork_project_user_name @fork_project_user.try(:show_real_name)
end
end
json.size @result['size']
json.ssh_url @result['ssh_url']
json.clone_url @result['clone_url']