mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
11 lines
327 B
Ruby
11 lines
327 B
Ruby
json.step current_user.devops_step
|
|
json.devops_certification current_user.ci_certification?
|
|
json.cloud_account do
|
|
if @cloud_account && !current_user.devops_uninit?
|
|
json.ip @cloud_account.drone_ip
|
|
json.redirect_url "#{@cloud_account.drone_url}/login" if current_user.devops_unverified?
|
|
else
|
|
json.nil!
|
|
end
|
|
end
|