Browse Source

Merge pull request 'fix-1218' (#1224) from fix-1218 into V20211228

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1224
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.12.2^2
lewis 3 years ago
parent
commit
ded751d12f
2 changed files with 8 additions and 5 deletions
  1. +1
    -5
      routers/repo/modelarts.go
  2. +7
    -0
      templates/repo/debugjob/index.tmpl

+ 1
- 5
routers/repo/modelarts.go View File

@@ -49,12 +49,9 @@ func DebugJobIndex(ctx *context.Context) {
page = 1
}
debugType := modelarts.DebugType
jobType := string(models.JobTypeDebug)
if debugListType == models.GPUResource {
debugType = models.TypeCloudBrainOne
jobType = ""
}
if debugListType == models.NPUResource {
} else if debugListType == models.NPUResource {
debugType = models.TypeCloudBrainTwo
}

@@ -65,7 +62,6 @@ func DebugJobIndex(ctx *context.Context) {
},
RepoID: repo.ID,
Type: debugType,
JobType: jobType,
})
if err != nil {
ctx.ServerError("Get debugjob faild:", err)


+ 7
- 0
templates/repo/debugjob/index.tmpl View File

@@ -402,6 +402,13 @@
<a class="ui basic disabled button">{{$.i18n.Tr "repo.download"}}</a>
{{end}}
</div>
<div class="item" style="padding: 0 !important;">
{{if and (ne .Status "WAITING") (ne .JobType "DEBUG") (eq .Cloudbrain.Type 0)}}
<a class="ui basic blue button" href="{{$.RepoLink}}/cloudbrain/{{.JobID}}/rate" target="_blank">
评分
</a>
{{end}}
</div>
</div>
</div>


Loading…
Cancel
Save