|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- {{template "base/head" .}}
- <!-- 提示框 -->
- <script src="{{StaticUrlPrefix}}/js/specsuse.js?v={{MD5 AppVer}}" type="text/javascript"></script>
- <div class="alert"></div>
- <div class="explore users">
- <div class="cloudbrain_debug" style="display: none;" data-debug="{{$.i18n.Tr "repo.debug"}}"
- data-debug-again="{{$.i18n.Tr "repo.debug_again"}}" data-debug-task="{{$.i18n.Tr "cloudbrain.DEBUG"}}"
- data-train-task="{{$.i18n.Tr "cloudbrain.TRAIN"}}" data-inference-task="{{$.i18n.Tr "cloudbrain.INFERENCE"}}"
- data-benchmark-task="{{$.i18n.Tr "cloudbrain.BENCHMARK"}}"
- data-all-cluster="{{.i18n.Tr "cloudbrain.all_resource_cluster"}}"
- data-all-aiCenter="{{.i18n.Tr "cloudbrain.all_ai_center"}}"
- data-cluster-c2net="{{.i18n.Tr "cloudbrain.resource_cluster_c2net"}}"
- data-cluster-openi="{{.i18n.Tr "cloudbrain.resource_cluster_openi"}}"
- data-all-task="{{.i18n.Tr "admin.cloudbrain.all_task_types"}}"
- data-all-compute="{{.i18n.Tr "admin.cloudbrain.all_computing_resources"}}"
- data-all-status="{{.i18n.Tr "admin.cloudbrain.all_status"}}"></div>
- {{template "admin/cloudbrain/search_dashboard" .}}
- <div class="ui container" style="width:90%;overflow-x:auto;overflow-y:hidden">
- {{template "base/alert" .}}
- <div class="ui grid" style="min-width:1700px;">
- <div class="row">
- <div class="ui sixteen wide column" style="margin-bottom:15px;">
- <!-- 任务展示 -->
- <div class="dataset list">
- <!-- 表头 -->
- <div class="ui grid stackable" style="background: #f0f0f0;;">
- <div class="row">
- <div class="three wide column nowrap" style="width:12%!important">
- <span>{{$.i18n.Tr "repo.cloudbrain_task"}}</span>
- </div>
- <!-- 集群 -->
- <div class="one wide column text center nowrap" style="width:8% !important;">
- <span>{{$.i18n.Tr "repo.modelarts.cluster"}}</span>
- </div>
- <div class="two wide column text center nowrap" style="width: 8% !important;">
- <span>{{$.i18n.Tr "repo.modelarts.status"}}</span>
- </div>
- <div class="one wide column text center nowrap" style="width:8% !important">
- <span>{{$.i18n.Tr "repo.cloudbrain_task_type"}}</span>
- </div>
- <div class="two wide column text center nowrap" style="width: 8% !important;">
- <span>{{$.i18n.Tr "repo.modelarts.createtime"}}</span>
- </div>
- <div class="one wide column text center nowrap" style="width:6% !important;">
- <span>{{$.i18n.Tr "repo.cloudbrain_status_runtime"}}</span>
- </div>
- <div class="one wide column text center nowrap" style="width:6% !important;">
- <span>{{$.i18n.Tr "repo.modelarts.computing_resources"}}</span>
- </div>
-
- <!-- 智算中心 -->
- <div class="one wide column text center nowrap" style="width:8% !important;">
- <span>{{$.i18n.Tr "repo.modelarts.ai_center"}}</span>
- </div>
- <!-- XPU类型 -->
- <div class="one wide column text center nowrap" style="width:10% !important;">
- <span>{{$.i18n.Tr "repo.modelarts.card_type"}}</span>
- </div>
- <div class="two wide column text center nowrap" style="width: 11%!important;">
- <span>{{$.i18n.Tr "repository"}}</span>
- </div>
-
- <div class="three wide column text center nowrap" style="width: 15%!important;">
- <span>{{$.i18n.Tr "repo.cloudbrain_operate"}}</span>
- </div>
- </div>
- </div>
- {{range .Tasks}}
- {{if .Repo}}
- <div class="ui grid stackable item">
- <div class="row">
- <!-- 任务名 -->
- {{$JobID := '0'}}
- {{if eq .JobType "DEBUG" "SNN4IMAGENET" "BRAINSCORE" "BENCHMARK" "MODELSAFETY"}}
- {{$JobID = .Cloudbrain.ID}}
- {{else}}
- {{$JobID = .JobID}}
- {{end}}
- <!-- {{$JobID}} -->
- <div class="three wide column nowrap" style="width:12% !important">
- {{if eq .JobType "DEBUG"}}
- <a class="title"
- href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain/{{$JobID}}{{else}}/modelarts/notebook/{{$JobID}}{{end}}"
- title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if or (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}}
- <a class="title"
- href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/cloudbrain/benchmark/{{$JobID}}"
- title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "MODELSAFETY"}}
- <a class="title"
- href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/modelsafety/{{$JobID}}/show"
- title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "INFERENCE"}}
- <a class="title"
- href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/{{if eq .Cloudbrain.Type 1}}modelarts{{else if eq .Cloudbrain.Type 0}}cloudbrain{{end}}/inference-job/{{$JobID}}"
- title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "TRAIN"}}
- <a class="title"
- href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/{{if eq .Cloudbrain.Type 1}}modelarts{{else if eq .Cloudbrain.Type 0}}cloudbrain{{else if eq .Cloudbrain.Type 2}}grampus{{end}}/train-job/{{$JobID}}"
- title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "BENCHMARK"}}
- <a class="title"
- href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/cloudbrain/benchmark/{{$JobID}}"
- title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{end}}
- </div>
- <!-- 集群 -->
- <div class="one wide column text center nowrap" style="width:8% !important;">
- <span style="font-size: 12px;" class="cluster_{{.DisplayJobName}}_{{$JobID}}">{{if .Cluster}}{{.Cluster}}{{else}}--{{end}}</span>
- </div>
- <!-- 任务状态 -->
- <div class="two wide column text center nowrap"
- style="width: 8% !important;">
- <span class="job-status" id="{{$JobID}}"
- data-repopath='{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .JobType "DEBUG"}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}{{else if eq .JobType "INFERENCE"}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts{{end}}/inference-job{{else if eq .JobType "TRAIN"}}{{if eq .ComputeResource "NPU"}}/modelarts/train-job{{else}}/cloudbrain/train-job{{end}}{{else if eq .JobType "BENCHMARK"}}/cloudbrain{{end}}'
- data-jobid="{{$JobID}}" data-version="{{.VersionName}}">
- <span><i id="{{$JobID}}-icon" style="vertical-align: middle;"
- class="{{.Status}}"></i><span id="{{$JobID}}-text"
- style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
- </span>
- </div>
- <!-- 任务类型 -->
-
- {{$JobType := $.i18n.Tr (printf "cloudbrain.%s" .JobType)}}
- <div class="one wide column text center nowrap" style="width:8% !important">
- <span style="font-size: 12px;" title="{{.JobType}}">{{$JobType}}</span>
- </div>
- <!-- 任务创建时间 -->
- <div class="two wide column text center nowrap" style="width: 8% !important;">
- <span style="font-size: 12px;"
- class="">{{TimeSinceUnix1 .Cloudbrain.CreatedUnix}}</span>
- </div>
- <!-- 任务运行时间 -->
- <div class="one wide column text center nowrap" style="width:6% !important;">
- <span style="font-size: 12px;"
- id="duration-{{$JobID}}">{{if .TrainJobDuration}}{{.TrainJobDuration}}{{else}}--{{end}}</span>
- </div>
- <!-- 计算资源 -->
- <div class="one wide column text center nowrap" style="width:6% !important;">
- <span
- style="font-size: 12px;">{{if .ComputeResource}}{{.ComputeResource}}{{else}}--{{end}}</span>
- </div>
-
- <!-- 智算中心 -->
- <div class="one wide column text center nowrap" style="width:8% !important;">
- <span style="font-size: 12px;" class="aicenter_{{.DisplayJobName}}_{{$JobID}}">{{if .AiCenter}}{{.AiCenter}}{{else}}--{{end}}</span>
- </div>
- <!-- XPU类型 -->
- <div class="one wide column text center nowrap" style="width:10% !important;">
- <span style="font-size: 12px;" title="" class="card_type_{{.DisplayJobName}}_{{$JobID}}"></span>
- </div>
- <script>
- (function(){
- var spec = {{.Spec}} || {};
- var cardType = getListValueWithKey(ACC_CARD_TYPE, spec.AccCardType) || '--';
- var spanEl = document.querySelector('.card_type_{{.DisplayJobName}}_{{$JobID}}');
- spanEl.setAttribute('title', cardType);
- spanEl.innerText = cardType;
-
- var cluster = spec.Cluster || '--';
- var clusterName = document.querySelector('.cloudbrain_debug').dataset['cluster' + cluster[0] + cluster.toLocaleLowerCase().slice(1)] || '--';
- spanEl = document.querySelector('.cluster_{{.DisplayJobName}}_{{$JobID}}');
- spanEl.setAttribute('title', cluster);
- spanEl.innerText = clusterName;
-
- var aiCenter = spec.AiCenterName || '--';
- spanEl = document.querySelector('.aicenter_{{.DisplayJobName}}_{{$JobID}}');
- spanEl.setAttribute('title', aiCenter);
- spanEl.innerText = aiCenter;
- })();
- </script>
- <!-- 项目 -->
- <div class="two wide column text center nowrap" style="width: 11%!important;">
- <a href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}"
- title="{{.Repo.OwnerName}}/{{.Repo.Alias}}">{{.Repo.OwnerName}}/{{.Repo.Alias}}</a>
- </div>
-
- <div class="three wide column text center nowrap" style="width: 15%!important;">
- {{if eq .JobType "DEBUG"}}
- <div class="ui compact buttons">
- <form id="debugAgainForm-{{$JobID}}">
- {{$.CsrfTokenHtml}}
- {{if eq .Status "RUNNING" "WAITING" "CREATING" "STARTING"}}
- <a style="margin: 0 1rem;" id="ai-debug-{{$JobID}}"
- class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}}disabled {{else}}blue {{end}}button'
- data-jobid="{{$JobID}}"
- data-repopath='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{$JobID}}/'>
- {{$.i18n.Tr "repo.debug"}}
- </a>
- {{else}}
- <a id="ai-debug-{{$JobID}}"
- class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}} disabled {{else}}blue {{end}}button'
- data-jobid="{{$JobID}}"
- data-repopath='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{$JobID}}/'>
- {{$.i18n.Tr "repo.debug_again"}}
- </a>
- {{end}}
- </form>
- </div>
- {{end}}
- <!-- 停止任务 -->
- <div class="ui compact buttons">
- {{if eq .JobType "MODELSAFETY"}}
- <form id="stopForm-{{$JobID}}" style="margin-left:-1px;">
- {{$.CsrfTokenHtml}}
- <a style="padding: 0.5rem 1rem;" id="ai-stop-{{$JobID}}"
- class='ui basic ai_stop {{if eq .Status "KILLED" "FAILED" "START_FAILED" "KILLING" "COMPLETED" "SUCCEEDED" "STOPPED" "STOPPING" "CREATE_FAILED"}}disabled {{else}} blue {{end}}button'
- data-repopath='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/modelsafety/{{$JobID}}/stop'
- data-jobid="{{$JobID}}">
- {{$.i18n.Tr "repo.stop"}}
- </a>
- </form>
- {{else}}
- {{if eq .JobType "DEBUG" "BENCHMARK" "SNN4IMAGENET" "BRAINSCORE"}}
- <form id="stopForm-{{$JobID}}" style="margin-left:-1px;">
- {{$.CsrfTokenHtml}}
- <a style="padding: 0.5rem 1rem;" id="ai-stop-{{$JobID}}"
- class='ui basic ai_stop {{if eq .Status "KILLED" "FAILED" "START_FAILED" "KILLING" "COMPLETED" "SUCCEEDED" "STOPPED" "STOPPING" "CREATE_FAILED"}}disabled {{else}} blue {{end}}button'
- data-repopath='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else if eq .JobType "BENCHMARK" }}/cloudbrain/benchmark{{else if eq .ComputeResource "NPU" }}/modelarts/notebook{{end}}/{{$JobID}}/stop'
- data-jobid="{{$JobID}}">
- {{$.i18n.Tr "repo.stop"}}
- </a>
- </form>
- {{else}}
- <a style="padding: 0.5rem 1rem;" id="ai-stop-{{$JobID}}"
- class='ui basic ai_stop_version {{if eq .Status "KILLED" "FAILED" "START_FAILED" "KILLING" "COMPLETED" "STOPPED" "SUCCEEDED" "CREATE_FAILED"}}disabled {{else}} blue {{end}}button'
- data-repopath='{{.Repo.OwnerName}}/{{.Repo.Name}}/{{if eq .JobType "INFERENCE"}}{{if eq .Cloudbrain.Type 1}}modelarts/inference-job{{else}}cloudbrain/train-job{{end}}{{else if eq .JobType "TRAIN"}}{{if eq .Cloudbrain.Type 1}}modelarts/train-job{{else if eq .Cloudbrain.Type 0}}cloudbrain/train-job{{else if eq .Cloudbrain.Type 2}}grampus/train-job{{end}}{{end}}'
- data-jobid="{{$JobID}}" data-version="{{.VersionName}}">
- {{$.i18n.Tr "repo.stop"}}
- </a>
- {{end}}
- {{end}}
- </div>
- {{if eq .JobType "BENCHMARK"}}
- <div class="ui compact buttons">
- <a class="ui basic button {{if $.IsSigned}} blue{{else}} disabled{{end}}"
- href="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/rate" target="_blank">
- {{$.i18n.Tr "repo.score"}}
- </a>
- </div>
- {{end}}
- <!-- 修改任务 -->
- {{if eq .JobType "TRAIN"}}
- <div class="ui compact buttons">
- <a style="padding: 0.5rem 1rem;" class="ui basic blue button" href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .Cloudbrain.Type 1}}/modelarts/train-job/{{.JobID}}{{else if eq .Cloudbrain.Type 0}}/cloudbrain/train-job/{{.JobID}}{{else if eq .Cloudbrain.Type 2}}/grampus/train-job/{{.JobID}}{{end}}/create_version{{if .VersionName}}?version_name={{.VersionName}}{{end}}">
- {{$.i18n.Tr "repo.modelarts.modify"}}
- </a>
- </div>
- {{end}}
- <!-- 删除任务 -->
- {{if eq .JobType "MODELSAFETY"}}
- <form class="ui compact buttons" id="delForm-{{$JobID}}"
- action='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/modelsafety/{{$JobID}}/del?ishomepage=true'
- method="post">
- {{$.CsrfTokenHtml}}
- <a style="padding: 0.5rem 1rem;margin-left:0.2rem" id="ai-delete-{{$JobID}}"
- class="ui basic ai_delete blue button"
- style="border-radius: .28571429rem;">
- {{$.i18n.Tr "repo.delete"}}
- </a>
- </form>
- {{else}}
- <form class="ui compact buttons" id="delForm-{{$JobID}}"
- action='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .JobType "BENCHMARK"}}/cloudbrain/benchmark{{else if or (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}}/cloudbrain{{else if eq .JobType "DEBUG"}}{{if eq .ComputeResource "NPU"}}/modelarts/notebook{{else}}/cloudbrain{{end}}{{else if eq .JobType "TRAIN"}}{{if eq .Cloudbrain.Type 1}}/modelarts/train-job{{else if eq .Cloudbrain.Type 0}}/cloudbrain/train-job{{else if eq .Cloudbrain.Type 2}}/grampus/train-job{{end}}{{else if eq .JobType "INFERENCE"}}{{if eq .Cloudbrain.Type 0}}/cloudbrain/train-job{{end}}{{end}}/{{$JobID}}/del?ishomepage=true'
- method="post">
- {{$.CsrfTokenHtml}}
- <a style="padding: 0.5rem 1rem;margin-left:0.2rem" id="ai-delete-{{$JobID}}"
- data-repopath="{{.Repo.OwnerName}}/{{.Repo.Name}}/modelarts/inference-job/{{$JobID}}/del_version?ishomepage=true"
- data-version="" class="ui basic ai_delete blue button"
- style="border-radius: .28571429rem;">
- {{$.i18n.Tr "repo.delete"}}
- </a>
- </form>
- {{end}}
-
- </div>
- </div>
- </div>
- {{else}}
- {{$JobID := '0'}}
- {{if eq .JobType "DEBUG" "SNN4IMAGENET" "BRAINSCORE" "BENCHMARK"}}
- {{$JobID = .Cloudbrain.ID}}
- {{else}}
- {{$JobID = .JobID}}
- {{end}}
- <div class="ui grid stackable item">
- <div class="row">
- <!-- 任务名 -->
- <div class="three wide column nowrap" style="width:12% !important">
- {{if eq .JobType "DEBUG"}}
- <a class="title" href="" title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "INFERENCE"}}
- <a class="title" href="" title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "TRAIN"}}
- <a class="title" href="" title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{else if eq .JobType "BENCHMARK"}}
- <a class="title" href="" title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
- <span class="fitted"
- style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
- </a>
- {{end}}
- </div>
- <!-- 集群 -->
- <div class="one wide column text center nowrap" style="width:8% !important;">
- <span
- style="font-size: 12px;">{{if .Cluster}}{{.Cluster}}{{else}}--{{end}}</span>
- </div>
- <!-- 任务状态 -->
- <div class="two wide column text center nowrap"
- style="padding-left: 2.2rem !important; width: 8% !important;">
- <span class="job-status" id="{{$JobID}}" data-jobid="{{$JobID}}"
- data-version="{{.VersionName}}">
- <span><i id="{{$JobID}}-icon" style="vertical-align: middle;"
- class="{{.Status}}"></i><span id="{{$JobID}}-text"
- style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
- </span>
- </div>
- <!-- 任务类型 -->
- {{$JobType := $.i18n.Tr (printf "cloudbrain.%s" .JobType)}}
- <div class="one wide column text center nowrap" style="width:8%">
- <span style="font-size: 12px;" title="{{.JobType}}">{{$JobType}}</span>
- </div>
- <!-- 任务创建时间 -->
- <div class="two wide column text center nowrap" style="width: 8% !important;">
- <span style="font-size: 12px;"
- class="">{{TimeSinceUnix1 .Cloudbrain.CreatedUnix}}</span>
- </div>
- <!-- 任务运行时间 -->
- <div class="one wide column text center nowrap" style="width:6% !important;">
- <span style="font-size: 12px;"
- id="duration-{{$JobID}}">{{if .TrainJobDuration}}{{.TrainJobDuration}}{{else}}--{{end}}</span>
- </div>
- <!-- 计算资源 -->
- <div class="one wide column text center nowrap" style="width:6% !important;">
- <span
- style="font-size: 12px;">{{if .ComputeResource}}{{.ComputeResource}}{{else}}--{{end}}</span>
- </div>
-
- <!-- 智算中心 -->
- <div class="one wide column text center nowrap" style="width:8% !important;">
- <span
- style="font-size: 12px;">{{if .AiCenter}}{{.AiCenter}}{{else}}--{{end}}</span>
- </div>
- <!-- XPU类型 -->
- <div class="one wide column text center nowrap" style="width:10% !important;">
- <span style="font-size: 12px;" title="{{.CardType}}">
- {{if .CardType}}{{.CardType}}{{else}}--{{end}}
- </span>
- </div>
-
- <!-- 项目 -->
- <div class="two wide column text center nowrap" style="width: 11%!important;">
- <a href="" title="">--</a>
- </div>
- <div class="three wide column text center nowrap" style="width: 15%!important;">
- {{if eq .JobType "DEBUG"}}
- <div class="ui compact buttons">
- <form id="debugAgainForm-{{$JobID}}">
- {{$.CsrfTokenHtml}}
- {{if eq .Status "RUNNING" "WAITING" "CREATING" "STARTING"}}
- <a style="margin: 0 1rem;" id="ai-debug-{{$JobID}}"
- class='ui basic disabled button'>
- {{$.i18n.Tr "repo.debug"}}
- </a>
- {{else}}
- <a id="ai-debug-{{$JobID}}" class='ui basic disabled button'>
- {{$.i18n.Tr "repo.debug_again"}}
- </a>
- {{end}}
- </form>
- </div>
- {{end}}
- <!-- 停止任务 -->
- <div class="ui compact buttons">
- <a style="padding: 0.5rem 1rem;" id="ai-stop-{{$JobID}}"
- class="ui basic disabled button" data-jobid="{{$JobID}}"
- data-version="{{.VersionName}}">
- {{$.i18n.Tr "repo.stop"}}
- </a>
- </div>
- <!-- 删除任务 -->
- <form class="ui compact buttons" id="delForm-{{$JobID}}" action='' method="post">
- {{$.CsrfTokenHtml}}
- <a style="padding: 0.5rem 1rem;margin-left:0.2rem" id="ai-delete-{{$JobID}}"
- class="ui basic disabled button" style="border-radius: .28571429rem;">
- {{$.i18n.Tr "repo.delete"}}
- </a>
- </form>
- </div>
- </div>
- </div>
-
- {{end}}
- {{end}}
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="app" style="margin-top: 2rem;margin-bottom: 2rem;">
- <div class="center">
- <el-pagination background @current-change="handleCurrentChange" :current-page="page"
- :page-sizes="[10]" :page-size="10" layout="total, sizes, prev, pager, next, jumper"
- :total="{{.Page.Paginater.Total}}">
- </el-pagination>
- </div>
- </div>
- <!-- 确认模态框 -->
- <div id="deletemodel">
- <div class="ui basic modal">
- <div class="ui icon header">
- <i class="trash icon"></i> {{.i18n.Tr "cloudbrain.delete_task"}}
- </div>
-
- <div class="content">
- <p>{{.i18n.Tr "cloudbrain.task_delete_confirm"}}</p>
- </div>
- <div class="actions">
- <div class="ui red basic inverted cancel button">
- <i class="remove icon"></i> {{.i18n.Tr "cloudbrain.operate_cancel"}}
- </div>
- <div class="ui green basic inverted ok button">
- <i class="checkmark icon"></i> {{.i18n.Tr "cloudbrain.operate_confirm"}}
- </div>
- </div>
- </div>
- </div>
- </div>
- {{template "base/footer" .}}
|