Browse Source

Merge remote-tracking branch 'origin/V20211101' into zouap

tags/v1.21.12.1
zouap 3 years ago
parent
commit
f78c4e6494
4 changed files with 10 additions and 6 deletions
  1. +1
    -1
      routers/repo/cloudbrain.go
  2. +6
    -2
      templates/explore/dataset_list.tmpl
  3. +2
    -2
      templates/repo/cloudbrain/new.tmpl
  4. +1
    -1
      templates/repo/modelarts/new.tmpl

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

@@ -474,7 +474,7 @@ func CloudBrainDel(ctx *context.Context) {
return
}

if task.Status != string(models.JobStopped) {
if task.Status != string(models.JobStopped) && task.Status != string(models.JobFailed){
log.Error("the job(%s) has not been stopped", task.JobName, ctx.Data["msgID"])
ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped"))
return


+ 6
- 2
templates/explore/dataset_list.tmpl View File

@@ -29,8 +29,12 @@
{{.Repo.OwnerName}} / {{.Title}}
</a>
<div class="ui right metas">
<span class="text grey">{{svg "octicon-tasklist" 16}} {{$.i18n.Tr (printf "dataset.task.%s" .Task)}}</span>
<span class="text grey">{{svg "octicon-tag" 16}}{{$.i18n.Tr (printf "dataset.category.%s" .Category)}}</span>
{{if .Task}}
<span class="text grey">{{svg "octicon-tasklist" 16}} {{$.i18n.Tr (printf "dataset.task.%s" .Task)}}</span>
{{end}}
{{if .Category}}
<span class="text grey">{{svg "octicon-tag" 16}}{{$.i18n.Tr (printf "dataset.category.%s" .Category)}}</span>
{{end}}
<span class="text grey">{{svg "octicon-flame" 16}} {{.DownloadTimes}}</span>
</div>
</div>


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

@@ -120,7 +120,7 @@
<div class="repository new repo ui middle very relaxed page grid">
<div class="column">
{{template "base/alert" .}}
<div class="ui positive message" id="messageInfo">
<div class="ui negative message" id="messageInfo">
<p></p>
</div>
<form id="form_id" class="ui form" action="{{.Link}}" method="post">
@@ -263,7 +263,7 @@
let flag = re.test(value_task)
if(!flag){
$('#messageInfo').css('display','block')
let str = '只能以小写字母或数字开头且只包含小写字母、数字、_和-、最长36个字符,不能下划线(-)结尾。'
let str = '只能以小写字母或数字开头且只包含小写字母、数字、_和-,不能以_结尾,最长36个字符。'
$('#messageInfo p').text(str)
return false
}


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

@@ -100,7 +100,7 @@
<div class="repository new repo ui middle very relaxed page grid">
<div class="column">
{{template "base/alert" .}}
<div class="ui positive message" id="messageInfo">
<div class="ui negative message" id="messageInfo">
<p></p>
</div>
<form class="ui form" id="form_id" action="{{.Link}}" method="post">


Loading…
Cancel
Save