Browse Source

show dataset name

tags/v1.22.6.2^2
lewis 3 years ago
parent
commit
e2845a506a
4 changed files with 3 additions and 8 deletions
  1. +1
    -0
      modules/cloudbrain/cloudbrain.go
  2. +0
    -6
      routers/repo/cloudbrain.go
  3. +1
    -1
      templates/repo/cloudbrain/benchmark/show.tmpl
  4. +1
    -1
      templates/repo/cloudbrain/show.tmpl

+ 1
- 0
modules/cloudbrain/cloudbrain.go View File

@@ -504,6 +504,7 @@ func RestartTask(ctx *context.Context, task *models.Cloudbrain, newID *string) e
JobType: task.JobType,
Type: task.Type,
Uuid: task.Uuid,
DatasetName: task.DatasetName,
Image: task.Image,
GpuQueue: task.GpuQueue,
ResourceSpecId: task.ResourceSpecId,


+ 0
- 6
routers/repo/cloudbrain.go View File

@@ -605,12 +605,6 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo
}

}
attachment, err := models.GetAttachmentByUUID(task.Uuid)
if err == nil {
ctx.Data["datasetname"] = attachment.Name
} else {
ctx.Data["datasetname"] = ""
}

ctx.Data["task"] = task
ctx.Data["jobName"] = task.JobName


+ 1
- 1
templates/repo/cloudbrain/benchmark/show.tmpl View File

@@ -474,7 +474,7 @@

<td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror">
{{$.datasetname}}
{{.DatasetName}}
</div>
</td>
</tr>


+ 1
- 1
templates/repo/cloudbrain/show.tmpl View File

@@ -409,7 +409,7 @@
<td class="ti-text-form-content">
<div class="text-span text-span-w"
id="{{.VersionName}}-BenchmarkTypeName">
{{$.datasetname}}
{{.DatasetName}}
</div>
</td>
</tr>


Loading…
Cancel
Save