From b8cc05d25218a4343f40880520b5d366fc372af0 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 7 Dec 2021 10:13:06 +0800 Subject: [PATCH] fix issue --- templates/repo/debugjob/index.tmpl | 575 +++++++++++++++++++++++ templates/repo/modelmanage/index.tmpl | 14 +- templates/repo/modelmanage/showinfo.tmpl | 34 +- 3 files changed, 592 insertions(+), 31 deletions(-) create mode 100644 templates/repo/debugjob/index.tmpl diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl new file mode 100644 index 000000000..83a12751d --- /dev/null +++ b/templates/repo/debugjob/index.tmpl @@ -0,0 +1,575 @@ + +{{template "base/head" .}} + + + + +
+
+
+
+
+
+
+
+
+ +
+ +
+ {{template "repo/header" .}} + +
+
+ +
+ + {{if .Permission.CanWrite $.UnitTypeCloudBrain}} + {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}}{{end}} +
+
+ +
+
+
+ + +
+
+
+
+ {{$.i18n.Tr "repo.cloudbrain_task"}} +
+
+ {{$.i18n.Tr "repo.modelarts.status"}} +
+
+ {{$.i18n.Tr "repo.modelarts.createtime"}} +
+
+ {{$.i18n.Tr "repo.modelarts.computing_resources"}} +
+
+ {{$.i18n.Tr "repo.cloudbrain_creator"}} +
+
+ {{$.i18n.Tr "repo.cloudbrain_operate"}} +
+
+
+ {{range .Tasks}} +
+
+ + +
+ + + {{.Status}} + +
+
+ + {{TimeSinceUnix .Cloudbrain.CreatedUnix $.Lang}} +
+
+ + {{.ComputeResource}} +
+
+ {{if .User.Name}} + + {{else}} + + {{end}} +
+
+
+ {{if and (ne .Status "WAITING") (ne .JobType "DEBUG")}} + + 评分 + + {{end}} + + {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} + {{if eq .ComputeResource "CPU/GPU"}} + + {{$.i18n.Tr "repo.debug"}} + + {{else}} + + {{$.i18n.Tr "repo.debug"}} + + {{end}} + {{else}} + + {{$.i18n.Tr "repo.debug"}} + + {{end}} + +
+ {{$.CsrfTokenHtml}} + {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} + + {{$.i18n.Tr "repo.stop"}} + + {{else}} + + {{$.i18n.Tr "repo.stop"}} + + {{end}} + +
+
+
+ + + + + + {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} + {{$.i18n.Tr "repo.submit_image"}} + {{else}} + {{$.i18n.Tr "repo.submit_image"}} + {{end}} +
+ {{.CanDel}} + +
+ + {{$.CsrfTokenHtml}} + {{if .CanDel}} + + + {{$.i18n.Tr "repo.delete"}} + + {{else}} + + {{$.i18n.Tr "repo.delete"}} + + {{end}} +
+ +
+ + +
+
+ {{end}} {{template "base/paginate" .}} +
+
+
+
+
+
+ + + + +
+ +
+ + +{{template "base/footer" .}} + + \ No newline at end of file diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index b9b76cb18..eab46387b 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -93,17 +93,11 @@
- @@ -118,16 +112,12 @@
-
- +
@@ -169,8 +159,6 @@ function createModelName(){ let repoName = location.pathname.split('/')[2] let modelName = repoName + '_model_' + Math.random().toString(36).substr(2, 4) - - console.log("repoName",modelName) $('#name').val(modelName) $('#version').val("0.0.1") } diff --git a/templates/repo/modelmanage/showinfo.tmpl b/templates/repo/modelmanage/showinfo.tmpl index a4ef84ebc..821340eb0 100644 --- a/templates/repo/modelmanage/showinfo.tmpl +++ b/templates/repo/modelmanage/showinfo.tmpl @@ -32,10 +32,17 @@ border-radius: .38571429rem !important; margin-left: 1.5em; } + .title-word-elipsis{ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 30%; + } .word-elipsis{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + padding-right: 80px; } .half-table{ width: 50%; @@ -78,8 +85,6 @@