Browse Source

Merge pull request '显示镜像名称完整' (#2576) from issue-zpz-0801 into V20220801

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2576
Reviewed-by: chenshihai <chenshh@pcl.ac.cn>
pull/2578/head
chenshihai 2 years ago
parent
commit
7dcaccf99e
6 changed files with 11 additions and 11 deletions
  1. +1
    -1
      routers/repo/modelarts.go
  2. +2
    -2
      templates/repo/cloudbrain/benchmark/show.tmpl
  3. +2
    -2
      templates/repo/cloudbrain/inference/show.tmpl
  4. +2
    -2
      templates/repo/cloudbrain/show.tmpl
  5. +2
    -2
      templates/repo/cloudbrain/trainjob/show.tmpl
  6. +2
    -2
      templates/repo/modelarts/notebook/show.tmpl

+ 1
- 1
routers/repo/modelarts.go View File

@@ -545,7 +545,7 @@ func NotebookDel(ctx *context.Context) {
var listType = ctx.Query("debugListType") var listType = ctx.Query("debugListType")
task := ctx.Cloudbrain task := ctx.Cloudbrain


if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped) {
if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped) && task.Status != string(models.ModelArtsDeleted) {
log.Error("the job(%s) has not been stopped", task.JobName) log.Error("the job(%s) has not been stopped", task.JobName)
ctx.RenderWithErr("the job has not been stopped", tplDebugJobIndex, nil) ctx.RenderWithErr("the job has not been stopped", tplDebugJobIndex, nil)
return return


+ 2
- 2
templates/repo/cloudbrain/benchmark/show.tmpl View File

@@ -353,14 +353,14 @@


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror"> <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
<span class="ui poping up clipboard" title="{{.Image}}" data-position="top center" id="clipboard-btn" style="cursor:pointer"
<span class="ui poping up clipboard" data-position="top center" id="clipboard-btn" style="cursor:pointer"
data-clipboard-text="{{.Image}}" data-clipboard-text="{{.Image}}"
data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}"
data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}"
data-content="{{$.i18n.Tr "repo.copy_link"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}"
data-variation="inverted tiny" data-variation="inverted tiny"
> >
{{.Image}}
<span title="{{.Image}}">{{.Image}}</span>
</span> </span>
</div> </div>
</td> </td>


+ 2
- 2
templates/repo/cloudbrain/inference/show.tmpl View File

@@ -381,14 +381,14 @@


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror"> <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
<span class="ui poping up clipboard" title="{{.Image}}" data-position="top center" id="clipboard-btn" style="cursor:pointer"
<span class="ui poping up clipboard" data-position="top center" id="clipboard-btn" style="cursor:pointer"
data-clipboard-text="{{.Image}}" data-clipboard-text="{{.Image}}"
data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}"
data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}"
data-content="{{$.i18n.Tr "repo.copy_link"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}"
data-variation="inverted tiny" data-variation="inverted tiny"
> >
{{.Image}}
<span title="{{.Image}}">{{.Image}}</span>
</span> </span>
</div> </div>
</td> </td>


+ 2
- 2
templates/repo/cloudbrain/show.tmpl View File

@@ -392,14 +392,14 @@


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror"> <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
<span class="ui poping up clipboard" title="{{.Image}}" data-position="top center" id="clipboard-btn" style="cursor:pointer"
<span class="ui poping up clipboard" data-position="top center" id="clipboard-btn" style="cursor:pointer"
data-clipboard-text="{{.Image}}" data-clipboard-text="{{.Image}}"
data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}"
data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}"
data-content="{{$.i18n.Tr "repo.copy_link"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}"
data-variation="inverted tiny" data-variation="inverted tiny"
> >
{{.Image}}
<span title="{{.Image}}">{{.Image}}</span>
</span> </span>
</div> </div>
</td> </td>


+ 2
- 2
templates/repo/cloudbrain/trainjob/show.tmpl View File

@@ -384,14 +384,14 @@


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror"> <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
<span class="ui poping up clipboard" title="{{.Image}}" data-position="top center" id="clipboard-btn" style="cursor:pointer"
<span class="ui poping up clipboard" data-position="top center" id="clipboard-btn" style="cursor:pointer"
data-clipboard-text="{{.Image}}" data-clipboard-text="{{.Image}}"
data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}"
data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}"
data-content="{{$.i18n.Tr "repo.copy_link"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}"
data-variation="inverted tiny" data-variation="inverted tiny"
> >
{{.Image}}
<span title="{{.Image}}">{{.Image}}</span>
</span> </span>
</div> </div>
</td> </td>


+ 2
- 2
templates/repo/modelarts/notebook/show.tmpl View File

@@ -359,14 +359,14 @@


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror"> <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
<span class="ui poping up clipboard" title="{{.Image}}" data-position="top center" id="clipboard-btn" style="cursor:pointer"
<span class="ui poping up clipboard" data-position="top center" id="clipboard-btn" style="cursor:pointer"
data-clipboard-text="{{.Image}}" data-clipboard-text="{{.Image}}"
data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}"
data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}"
data-content="{{$.i18n.Tr "repo.copy_link"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}"
data-variation="inverted tiny" data-variation="inverted tiny"
> >
{{.Image}}
<span title="{{.Image}}">{{.Image}}</span>
</span> </span>
</div> </div>
</td> </td>


Loading…
Cancel
Save