|
|
|
@@ -27,34 +27,34 @@ |
|
|
|
<!-- 表头 --> |
|
|
|
<div class="ui grid stackable" style="background: #f0f0f0;;"> |
|
|
|
<div class="row"> |
|
|
|
<div class="two wide column padding0"> |
|
|
|
<div class="two wide column nowrap"> |
|
|
|
<span style="margin:0 6px">{{$.i18n.Tr "repo.cloudbrain_task"}}</span> |
|
|
|
</div> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span style="margin:0 6px">{{$.i18n.Tr "repo.cloudbrain_task_type"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0" style="width: 10% !important;"> |
|
|
|
<div class="two wide column text center nowrap" style="width: 10% !important;"> |
|
|
|
<span>{{$.i18n.Tr "repo.modelarts.status"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0" style="width: 10% !important;"> |
|
|
|
<div class="two wide column text center nowrap" style="width: 10% !important;"> |
|
|
|
<span>{{$.i18n.Tr "repo.modelarts.createtime"}}</span> |
|
|
|
</div> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span>{{$.i18n.Tr "repo.cloudbrain_status_runtime"}}</span> |
|
|
|
</div> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span>{{$.i18n.Tr "repo.modelarts.computing_resources"}}</span> |
|
|
|
</div> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span>{{$.i18n.Tr "repo.cloudbrain_creator"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<div class="two wide column text center nowrap"> |
|
|
|
<span>{{$.i18n.Tr "repository"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<div class="two wide column text center nowrap"> |
|
|
|
<span>{{.i18n.Tr "admin.cloudbrain.cloudbrain_name"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0" style="width: 17.5%!important;"> |
|
|
|
<div class="two wide column text center nowrap" style="width: 17.5%!important;"> |
|
|
|
<span>{{$.i18n.Tr "repo.cloudbrain_operate"}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -63,7 +63,7 @@ |
|
|
|
<div class="ui grid stackable item"> |
|
|
|
<div class="row"> |
|
|
|
<!-- 任务名 --> |
|
|
|
<div class="two wide column padding0"> |
|
|
|
<div class="two wide column nowrap"> |
|
|
|
{{if eq .JobType "DEBUG"}} |
|
|
|
<a class="title" href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/cloudbrain/{{.JobName}}" title="{{.JobName}}" style="font-size: 14px;"> |
|
|
|
<span class="fitted" style="width: 90%;vertical-align: middle;">{{.JobName}}</span> |
|
|
|
@@ -83,29 +83,29 @@ |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
<!-- 任务类型 --> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span style="font-size: 12px;">{{.JobType}} </span> |
|
|
|
</div> |
|
|
|
<!-- 任务状态 --> |
|
|
|
<div class="two wide column text center padding0" style="padding-left: 2.2rem !important; width: 10% !important;"> |
|
|
|
<div class="two wide column text center nowrap" style="padding-left: 2.2rem !important; width: 10% !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"}}/modelarts/inference-job{{else if eq .JobType "TRAIN"}}/modelarts/train-job{{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> |
|
|
|
<!-- 任务创建时间 --> |
|
|
|
<div class="two wide column text center padding0" style="width: 10% !important;"> |
|
|
|
<div class="two wide column text center nowrap" style="width: 10% !important;"> |
|
|
|
<span style="font-size: 12px;" class="">{{TimeSinceUnix1 .Cloudbrain.CreatedUnix}}</span> |
|
|
|
</div> |
|
|
|
<!-- 任务运行时间 --> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span style="font-size: 12px;" id="duration-{{.JobID}}">{{if .TrainJobDuration}}{{.TrainJobDuration}}{{else}}--{{end}}</span> |
|
|
|
</div> |
|
|
|
<!-- 计算资源 --> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
<span style="font-size: 12px;">{{if .ComputeResource}}{{.ComputeResource}}{{else}}--{{end}}</span> |
|
|
|
</div> |
|
|
|
<!-- 创建者 --> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<div class="one wide column text center nowrap"> |
|
|
|
{{if .User.Name}} |
|
|
|
<a href="{{AppSubUrl}}/{{.User.Name}}" title="{{.User.Name}}"><img class="ui avatar image" src="{{.User.RelAvatarLink}}"></a> |
|
|
|
{{else}} |
|
|
|
@@ -113,14 +113,14 @@ |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
<!-- 项目 --> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<a href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}" title="{{.Repo.OwnerName}}/{{.Repo.Name}}">{{.Repo.OwnerName}}/{{.Repo.Name}}</a> |
|
|
|
<div class="two wide column text center nowrap"> |
|
|
|
<a href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}" title="{{.Repo.OwnerName}}/{{.Repo.Alias}}">{{.Repo.OwnerName}}/{{.Repo.Alias}}</a> |
|
|
|
</div> |
|
|
|
<!-- 云脑侧名称 --> |
|
|
|
<div class="two wide column text center padding0" style="overflow: hidden;text-overflow:ellipsis;"> |
|
|
|
<div class="two wide column text center nowrap" style="overflow: hidden;text-overflow:ellipsis;"> |
|
|
|
<span class="fitted">{{.JobName}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0" style="width: 17.5%!important;"> |
|
|
|
<div class="two wide column text center nowrap" style="width: 17.5%!important;"> |
|
|
|
{{if eq .JobType "DEBUG"}} |
|
|
|
<div class="ui compact buttons"> |
|
|
|
<form id="debugAgainForm-{{.JobID}}"> |
|
|
|
|