|
|
@@ -37,6 +37,7 @@ import ( |
|
|
|
"code.gitea.io/gitea/modules/context" |
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/setting" |
|
|
|
cloudbrainService "code.gitea.io/gitea/services/cloudbrain" |
|
|
|
) |
|
|
|
|
|
|
|
const ( |
|
|
@@ -915,10 +916,7 @@ func GrampusTrainJobShow(ctx *context.Context) { |
|
|
|
ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) |
|
|
|
ctx.Data["displayJobName"] = task.DisplayJobName |
|
|
|
|
|
|
|
aiCenterInfo := strings.Split(task.AiCenter, "+") |
|
|
|
if len(aiCenterInfo) == 2 { |
|
|
|
ctx.Data["ai_center"] = aiCenterInfo[1] |
|
|
|
} |
|
|
|
ctx.Data["ai_center"] = cloudbrainService.GetAiCenterShow(task.AiCenter,ctx) |
|
|
|
|
|
|
|
ctx.HTML(http.StatusOK, tplGrampusTrainJobShow) |
|
|
|
} |
|
|
|