|
|
@@ -145,21 +145,23 @@ |
|
|
|
<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> |
|
|
|
<div class="ui compact buttons"> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
{{else}} |
|
|
|
<div class="ui compact buttons"> |
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|