Browse Source

#2586

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2667/head
zouap 2 years ago
parent
commit
efed4b0819
3 changed files with 11 additions and 3 deletions
  1. +1
    -1
      routers/repo/grampus.go
  2. +3
    -1
      templates/repo/modelarts/inferencejob/show.tmpl
  3. +7
    -1
      templates/repo/modelarts/trainjob/show.tmpl

+ 1
- 1
routers/repo/grampus.go View File

@@ -695,7 +695,7 @@ func GrampusTrainJobShow(ctx *context.Context) {
taskList := make([]*models.Cloudbrain, 0) taskList := make([]*models.Cloudbrain, 0)
taskList = append(taskList, task) taskList = append(taskList, task)
ctx.Data["version_list_task"] = taskList ctx.Data["version_list_task"] = taskList
ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, false)
ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task)
ctx.Data["displayJobName"] = task.DisplayJobName ctx.Data["displayJobName"] = task.DisplayJobName




+ 3
- 1
templates/repo/modelarts/inferencejob/show.tmpl View File

@@ -409,7 +409,9 @@ td, th {


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w"> <div class="text-span text-span-w">
{{.DatasetName}}
{{range $m ,$n := $.datasetDownload}}
<a href="{{.RepositoryLink}}">{{.DatasetName}}</a>
{{end}}
</div> </div>
</td> </td>
</tr> </tr>


+ 7
- 1
templates/repo/modelarts/trainjob/show.tmpl View File

@@ -460,7 +460,13 @@


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w"> <div class="text-span text-span-w">
{{.DatasetName}}
{{range $m ,$n := $.datasetDownload}}
{{if eq $k $m}}
{{range $f ,$g := $n}}
<a href="{{.RepositoryLink}}">{{.DatasetName}}</a>
{{end}}
{{end}}
{{end}}
</div> </div>
</td> </td>
</tr> </tr>


Loading…
Cancel
Save