| @@ -126,7 +126,7 @@ | |||||
| </div> | </div> | ||||
| <!-- 云脑侧名称 --> | <!-- 云脑侧名称 --> | ||||
| <div class="two wide column text center nowrap" 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> | |||||
| <span class="fitted" title="{{.JobName}}">{{.JobName}}</span> | |||||
| </div> | </div> | ||||
| <div class="two wide column text center nowrap" style="width: 17.5%!important;"> | <div class="two wide column text center nowrap" style="width: 17.5%!important;"> | ||||
| {{if eq .JobType "DEBUG" "SNN4IMAGENET" "BRAINSCORE"}} | {{if eq .JobType "DEBUG" "SNN4IMAGENET" "BRAINSCORE"}} | ||||
| @@ -171,6 +171,12 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {{else}} | {{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="ui grid stackable item"> | ||||
| <div class="row"> | <div class="row"> | ||||
| <!-- 任务名 --> | <!-- 任务名 --> | ||||
| @@ -6,7 +6,7 @@ | |||||
| <td class="name four wide"> | <td class="name four wide"> | ||||
| <span class="truncate"> | <span class="truncate"> | ||||
| <span class="octicon octicon-file-directory"></span> | <span class="octicon octicon-file-directory"></span> | ||||
| <a class="title" href="{{if .IsDir}}{{$.RepoLink}}/cloudbrain/{{$.JobID}}/models?parentDir={{.ParenDir}}{{else}}{{$.RepoLink}}/cloudbrain/{{$.JobID}}/download_model?parentDir={{.ParenDir}}&fileName={{.FileName}}&jobName={{$.task.JobName}}{{end}}"> | |||||
| <a class="title" href="{{if .IsDir}}{{$.RepoLink}}/cloudbrain/models?parentDir={{.ParenDir}}{{else}}{{$.RepoLink}}/cloudbrain/download_model?parentDir={{.ParenDir}}&fileName={{.FileName}}&jobName={{$.task.JobName}}{{end}}"> | |||||
| <span class="fitted">{{if .IsDir}} {{svg "octicon-file-directory" 16}}{{else}}{{svg "octicon-file" 16}}{{end}}</span> {{.FileName}} | <span class="fitted">{{if .IsDir}} {{svg "octicon-file-directory" 16}}{{else}}{{svg "octicon-file" 16}}{{end}}</span> {{.FileName}} | ||||
| </a> | </a> | ||||
| </span> | </span> | ||||
| @@ -189,7 +189,7 @@ | |||||
| <div class="inline required field" style="position: relative;"> | <div class="inline required field" style="position: relative;"> | ||||
| <label>镜像</label> | <label>镜像</label> | ||||
| <input type="text" list="cloudbrain_image" placeholder="选择镜像" name="image" required autofocus maxlength="255"> | |||||
| <input type="text" list="cloudbrain_image" placeholder="选择镜像或输入镜像地址" name="image" required autofocus maxlength="255"> | |||||
| <i class="times circle outline icon icons" style="visibility: hidden;" onclick="clearValue()"></i> | <i class="times circle outline icon icons" style="visibility: hidden;" onclick="clearValue()"></i> | ||||
| <datalist class="ui search" id="cloudbrain_image" style='width:385px;' name="image"> | <datalist class="ui search" id="cloudbrain_image" style='width:385px;' name="image"> | ||||
| {{range .images}} | {{range .images}} | ||||