Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2576 Reviewed-by: chenshihai <chenshh@pcl.ac.cn>tags/v1.22.7.2^2
| @@ -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 | ||||
| @@ -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> | ||||
| @@ -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> | ||||
| @@ -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> | ||||
| @@ -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> | ||||
| @@ -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> | ||||