|
|
|
@@ -91,6 +91,7 @@ func DebugJobIndex(ctx *context.Context) { |
|
|
|
ctx.Data["Tasks"] = ciTasks |
|
|
|
ctx.Data["CanCreate"] = cloudbrain.CanCreateOrDebugJob(ctx) |
|
|
|
ctx.Data["RepoIsEmpty"] = repo.IsEmpty |
|
|
|
ctx.Data["debugListType"] = debugListType |
|
|
|
ctx.HTML(200, tplDebugJobIndex) |
|
|
|
} |
|
|
|
|
|
|
|
@@ -227,6 +228,7 @@ func Notebook2Create(ctx *context.Context, form auth.CreateModelArtsNotebookForm |
|
|
|
|
|
|
|
func NotebookShow(ctx *context.Context) { |
|
|
|
ctx.Data["PageIsCloudBrain"] = true |
|
|
|
debugListType := ctx.Query("debugListType") |
|
|
|
|
|
|
|
var jobID = ctx.Params(":jobid") |
|
|
|
task, err := models.GetCloudbrainByJobID(jobID) |
|
|
|
@@ -271,6 +273,7 @@ func NotebookShow(ctx *context.Context) { |
|
|
|
ctx.Data["jobID"] = jobID |
|
|
|
ctx.Data["jobName"] = task.JobName |
|
|
|
ctx.Data["result"] = result |
|
|
|
ctx.Data["debugListType"] = debugListType |
|
|
|
ctx.HTML(200, tplModelArtsNotebookShow) |
|
|
|
} |
|
|
|
|
|
|
|
|