Browse Source

fix issue

tags/V1.22.3.1^2
zhoupzh 3 years ago
parent
commit
d4c2583bfd
3 changed files with 9 additions and 3 deletions
  1. +7
    -1
      templates/admin/cloudbrain/list.tmpl
  2. +1
    -1
      templates/repo/cloudbrain/models/dir_list.tmpl
  3. +1
    -1
      templates/repo/cloudbrain/new.tmpl

+ 7
- 1
templates/admin/cloudbrain/list.tmpl View File

@@ -126,7 +126,7 @@
</div>
<!-- 云脑侧名称 -->
<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 class="two wide column text center nowrap" style="width: 17.5%!important;">
{{if eq .JobType "DEBUG" "SNN4IMAGENET" "BRAINSCORE"}}
@@ -171,6 +171,12 @@
</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">
<!-- 任务名 -->


+ 1
- 1
templates/repo/cloudbrain/models/dir_list.tmpl View File

@@ -6,7 +6,7 @@
<td class="name four wide">
<span class="truncate">
<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}}
</a>
</span>


+ 1
- 1
templates/repo/cloudbrain/new.tmpl View File

@@ -189,7 +189,7 @@

<div class="inline required field" style="position: relative;">
<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>
<datalist class="ui search" id="cloudbrain_image" style='width:385px;' name="image">
{{range .images}}


Loading…
Cancel
Save