|
|
|
@@ -307,7 +307,7 @@ func NotebookDebug2(ctx *context.Context) { |
|
|
|
ctx.RenderWithErr(err.Error(), tplModelArtsNotebookIndex, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ctx.Redirect(result.Url) |
|
|
|
} |
|
|
|
|
|
|
|
@@ -438,7 +438,12 @@ func NotebookDel(ctx *context.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/debugjob?debugListType=all") |
|
|
|
var isAdminPage = ctx.Query(":isadminpage") |
|
|
|
if ctx.IsUserSiteAdmin() && isAdminPage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/admin" + "/cloudbrains") |
|
|
|
} else { |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/debugjob?debugListType=all") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func TrainJobIndex(ctx *context.Context) { |
|
|
|
@@ -1543,7 +1548,12 @@ func TrainJobDel(ctx *context.Context) { |
|
|
|
DeleteJobStorage(VersionListTasks[0].JobName) |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelarts/train-job") |
|
|
|
var isAdminPage = ctx.Query(":isadminpage") |
|
|
|
if ctx.IsUserSiteAdmin() && isAdminPage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/admin" + "/cloudbrains") |
|
|
|
} else { |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelarts/train-job") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func TrainJobStop(ctx *context.Context) { |
|
|
|
|