Browse Source

停止任务链接。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
c32f930ea3
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      templates/repo/modelmanage/convertIndex.tmpl

+ 6
- 8
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -97,17 +97,15 @@
<div class="three wide column text center padding0">
<div class="ui compact buttons" >
<!-- 停止任务 -->
<form id="stopForm-{{.ID}}" style="margin-left:-1px;" action="{{$.RepoLink}}/modelmanage/convert_stop/{{.ID}}" method="post">
{{$.CsrfTokenHtml}}
{{if .IsCanOper}}
<a id="ai-stop-{{.ID}}" class='ui basic model_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED"}}disabled {{else}}blue {{end}}button' >
{{if .IsCanOper}}
<a id="ai-stop-{{.ID}}" href="{{$.RepoLink}}/modelmanage/convert_stop/{{.ID}}" class='ui basic model_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED"}}disabled {{else}}blue {{end}}button' >
{{$.i18n.Tr "repo.stop"}}
</a>
{{else}}
{{else}}
<a class="ui basic disabled button">{{$.i18n.Tr "repo.stop"}} </a>
{{end}}
</form>
{{end}}
<!-- 删除任务 -->
<form id="delForm-{{.ID}}" action="{{$.RepoLink}}/modelmanage/delete_model_convert/{{.ID}}" method="post">
{{$.CsrfTokenHtml}}


Loading…
Cancel
Save