|
|
|
@@ -753,8 +753,11 @@ func CloudBrainDel(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
var isAdminPage = ctx.Query("isadminpage") |
|
|
|
var isHomePage = ctx.Query("isHomepage") |
|
|
|
if ctx.IsUserSiteAdmin() && isAdminPage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/admin" + "/cloudbrains") |
|
|
|
} else if isHomePage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/cloudbrains") |
|
|
|
} else { |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/debugjob?debugListType=" + listType) |
|
|
|
} |
|
|
|
@@ -1693,8 +1696,11 @@ func BenchmarkDel(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
var isAdminPage = ctx.Query("isadminpage") |
|
|
|
var isHomePage = ctx.Query("isHomepage") |
|
|
|
if ctx.IsUserSiteAdmin() && isAdminPage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/admin" + "/cloudbrains") |
|
|
|
} else if isHomePage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/cloudbrains") |
|
|
|
} else { |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/cloudbrain/benchmark") |
|
|
|
} |
|
|
|
@@ -1747,8 +1753,11 @@ func CloudBrainTrainJobDel(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
var isAdminPage = ctx.Query("isadminpage") |
|
|
|
var isHomePage = ctx.Query("isHomepage") |
|
|
|
if ctx.IsUserSiteAdmin() && isAdminPage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/admin" + "/cloudbrains") |
|
|
|
} else if isHomePage == "true" { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/cloudbrains") |
|
|
|
} else { |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelarts/train-job?listType=" + listType) |
|
|
|
} |
|
|
|
|