Browse Source

fix issue

pull/2458/head
zhoupzh 3 years ago
parent
commit
dc1acbfffb
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      templates/repo/modelarts/inferencejob/index.tmpl

+ 18
- 0
templates/repo/modelarts/inferencejob/index.tmpl View File

@@ -144,6 +144,23 @@


<div class="three wide column text center padding0"> <div class="three wide column text center padding0">
<!-- 停止任务 --> <!-- 停止任务 -->
{{if eq .Cloudbrain.Type 0 }}
<form id="stopForm-{{.Cloudbrain.ID}}" style="margin-left:-1px;">
{{$.CsrfTokenHtml}}
{{if .CanDel}}
<a id="ai-stop-{{.Cloudbrain.ID}}"
class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED"}}disabled {{else}}blue {{end}}button'
data-repopath="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/stop"
data-jobid="{{.Cloudbrain.ID}}">
{{$.i18n.Tr "repo.stop"}}
</a>
{{else}}
<a class="ui basic disabled button">
{{$.i18n.Tr "repo.stop"}}
</a>
{{end}}
</form>
{{else}
<div class="ui compact buttons"> <div class="ui compact buttons">
{{$.CsrfTokenHtml}} {{$.CsrfTokenHtml}}
{{if .CanDel}} {{if .CanDel}}
@@ -157,6 +174,7 @@
{{end}} {{end}}


</div> </div>
{{end}}
<!-- 下载 --> <!-- 下载 -->
<div class="ui compact buttons"> <div class="ui compact buttons">
{{$.CsrfTokenHtml}} {{$.CsrfTokenHtml}}


Loading…
Cancel
Save