|
|
|
@@ -32,12 +32,12 @@ const ( |
|
|
|
tplCloudBrainShow base.TplName = "repo/cloudbrain/show" |
|
|
|
tplCloudBrainShowModels base.TplName = "repo/cloudbrain/models/index" |
|
|
|
|
|
|
|
tplCloudBrainBenchmarkNew base.TplName = "repo/cloudbrain/benchmark/new" |
|
|
|
tplCloudBrainBenchmarkNew base.TplName = "repo/cloudbrain/benchmark/new" |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
|
gpuInfos *models.GpuInfos |
|
|
|
categories *models.Categories |
|
|
|
gpuInfos *models.GpuInfos |
|
|
|
categories *models.Categories |
|
|
|
benchmarkTypes *models.BenchmarkTypes |
|
|
|
) |
|
|
|
|
|
|
|
@@ -945,9 +945,9 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) { |
|
|
|
Page: page, |
|
|
|
PageSize: setting.UI.IssuePagingNum, |
|
|
|
}, |
|
|
|
RepoID: repo.ID, |
|
|
|
Type: models.TypeCloudBrainOne, |
|
|
|
JobType: string(models.JobTypeBenchmark), |
|
|
|
RepoID: repo.ID, |
|
|
|
Type: models.TypeCloudBrainOne, |
|
|
|
JobType: string(models.JobTypeBenchmark), |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Get debugjob faild:", err) |
|
|
|
@@ -966,7 +966,7 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) { |
|
|
|
ctx.Data["Tasks"] = ciTasks |
|
|
|
ctx.Data["CanCreate"] = cloudbrain.CanCreateOrDebugJob(ctx) |
|
|
|
ctx.Data["RepoIsEmpty"] = repo.IsEmpty |
|
|
|
ctx.HTML(200, tplDebugJobIndex) |
|
|
|
ctx.HTML(200, tplBenchMarkIndex) |
|
|
|
} |
|
|
|
|
|
|
|
func CloudBrainBenchmarkNew(ctx *context.Context) { |
|
|
|
|