This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Merge branch 'V20211018' into fix-333
pull/531/head
lewis
3 years ago
parent
514e3d0c6c
eacf9d5c6e
commit
a7c0fdff57
3 changed files
with
5 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
routers/repo/modelarts.go
+1
-1
templates/repo/cloudbrain/index.tmpl
+2
-2
templates/repo/modelarts/index.tmpl
+ 2
- 0
routers/repo/modelarts.go
View File
@@ -57,6 +57,8 @@ func ModelArtsIndex(ctx *context.Context) {
} else {
ciTasks[i].CanDebug = false
}
ciTasks[i].CanDel = models.CanDelJob(ctx.IsSigned, ctx.User, task)
}
pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, 5)
+ 1
- 1
templates/repo/cloudbrain/index.tmpl
View File
@@ -352,7 +352,7 @@
</div>
<!-- 删除
镜像
-->
<!-- 删除
任务
-->
<form class="ui compact buttons" id="delForm-{{.JobID}}" action="{{if not .CanDel}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post">
{{$.CsrfTokenHtml}}
<a class="ui compact {{if not .CanDel}}disabled {{else}}red {{end}}button" onclick="assertDelete(this)" style="border-radius: .28571429rem;">
+ 2
- 2
templates/repo/modelarts/index.tmpl
View File
@@ -312,9 +312,9 @@
</div>
<!-- 删除任务 -->
<form class="ui compact buttons" id="delForm-{{.JobID}}" action="{{if n
e .Status "STOPPED"
}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post">
<form class="ui compact buttons" id="delForm-{{.JobID}}" action="{{if n
ot .CanDel
}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post">
{{$.CsrfTokenHtml}}
<a class="ui compact {{if n
e .Status "STOPPED"
}}disabled {{else}}red {{end}}button" onclick="assertDelete(this)" style="border-radius: .28571429rem;">
<a class="ui compact {{if n
ot .CanDel
}}disabled {{else}}red {{end}}button" onclick="assertDelete(this)" style="border-radius: .28571429rem;">
删除
</a>
</form>
Write
Preview
Loading…
Cancel
Save