mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX update devops process
This commit is contained in:
12
app/views/users/devops.json.jbuilder
Normal file
12
app/views/users/devops.json.jbuilder
Normal file
@@ -0,0 +1,12 @@
|
||||
json.step @user.devops_step
|
||||
json.cloud_account do
|
||||
if @cloud_account && !@user.devops_uninit?
|
||||
json.account @cloud_account.account
|
||||
json.ip @cloud_account.drone_ip
|
||||
json.secret @cloud_account.visible_secret
|
||||
json.authenticate_url "#{@cloud_account.drone_url}/login" if @user.devops_unverified?
|
||||
json.get_drone_token_url "#{@cloud_account.drone_url}/account" if @user.devops_verified?
|
||||
else
|
||||
json.nil!
|
||||
end
|
||||
end
|
||||
@@ -12,5 +12,4 @@ json.user_phone_binded @user.phone.present?
|
||||
# json.email @user.mail
|
||||
json.profile_completed @user.profile_completed?
|
||||
json.professional_certification @user.professional_certification
|
||||
|
||||
|
||||
json.devops_step @user.devops_step
|
||||
|
||||
Reference in New Issue
Block a user