diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index 5ad5a215e..069a1a0b5 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -370,6 +370,7 @@ func trainJobNewDataPrepare(ctx *context.Context) error { ctx.Data["Branches"] = Branches ctx.Data["BranchesCount"] = len(Branches) ctx.Data["params"] = "" + ctx.Data["BranchName"] = ctx.Repo.BranchName configList, err := getConfigList(modelarts.PerPage, 1, modelarts.SortByCreateTime, "desc", "", modelarts.ConfigTypeCustom) if err != nil { @@ -903,10 +904,11 @@ func TrainJobCreateVersion(ctx *context.Context, form auth.CreateModelArtsTrainJ // } //todo: del the codeLocalPath - _, err = ioutil.ReadDir(codeLocalPath) - if err == nil { - os.RemoveAll(codeLocalPath) - } + // _, err = ioutil.ReadDir(codeLocalPath) + // if err == nil { + // os.RemoveAll(codeLocalPath) + // } + os.RemoveAll(codeLocalPath) gitRepo, _ := git.OpenRepository(repo.RepoPath()) commitID, _ := gitRepo.GetBranchCommitID(branch_name) diff --git a/templates/repo/cloudbrain/index.tmpl b/templates/repo/cloudbrain/index.tmpl index 097758c8f..22b66a35c 100755 --- a/templates/repo/cloudbrain/index.tmpl +++ b/templates/repo/cloudbrain/index.tmpl @@ -399,7 +399,7 @@
{{$.CsrfTokenHtml}} {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} - + {{$.i18n.Tr "repo.delete"}} {{else}} diff --git a/templates/repo/modelarts/notebook/index.tmpl b/templates/repo/modelarts/notebook/index.tmpl index 425c3b199..16af3bed3 100755 --- a/templates/repo/modelarts/notebook/index.tmpl +++ b/templates/repo/modelarts/notebook/index.tmpl @@ -352,7 +352,7 @@ {{$.CsrfTokenHtml}} {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} - + {{$.i18n.Tr "repo.delete"}} {{else}} diff --git a/templates/repo/modelarts/trainjob/new.tmpl b/templates/repo/modelarts/trainjob/new.tmpl index 8513ee9ec..e334b2acd 100755 --- a/templates/repo/modelarts/trainjob/new.tmpl +++ b/templates/repo/modelarts/trainjob/new.tmpl @@ -177,10 +177,15 @@ diff --git a/web_src/less/openi.less b/web_src/less/openi.less index 67707020e..8980c7680 100644 --- a/web_src/less/openi.less +++ b/web_src/less/openi.less @@ -289,7 +289,7 @@ footer .column{margin-bottom:0!important; padding-bottom:0!important;} .dropdown-menu { position: relative; display: inline-block; - margin-top: 4px; + } .hover_active{ @@ -305,8 +305,8 @@ display: block; -webkit-box-shadow: none !important; box-shadow: none !important; border-radius: .28571429rem .28571429rem 0 0!important; - color: rgba(0,0,0,.95); - border-top-width: 1px; + color: rgba(0,0,0,.95) !important; + border-top-width: 1px !important; }