From 6b85192feb6987e35f879c2a4d48fc7f1515236b Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 20 Mar 2022 20:29:03 +0800 Subject: [PATCH] fix issue --- templates/custom/select_dataset.tmpl | 107 +++++++++++++++ templates/explore/datasets.tmpl | 4 +- templates/repo/cloudbrain/new.tmpl | 77 +++++------ templates/repo/datasets/edit.tmpl | 3 - templates/repo/datasets/index.tmpl | 17 ++- templates/repo/debugjob/index.tmpl | 1 + templates/repo/editor/upload.tmpl | 2 +- templates/repo/header.tmpl | 2 +- templates/repo/modelarts/notebook/new.tmpl | 12 +- web_src/js/components/MinioUploader.vue | 3 + web_src/js/index.js | 145 +++++++++++++++++++-- 11 files changed, 295 insertions(+), 78 deletions(-) create mode 100644 templates/custom/select_dataset.tmpl diff --git a/templates/custom/select_dataset.tmpl b/templates/custom/select_dataset.tmpl new file mode 100644 index 000000000..ef1544e74 --- /dev/null +++ b/templates/custom/select_dataset.tmpl @@ -0,0 +1,107 @@ + +
+ + + + + 选择数据集 + +
+ + +
+ + + +
+
+
${dataset.Repo.OwnerName}/${dataset.Repo.Alias} ${dataset.Name}
+
+ + + + ${dataset.Description} +
+
+
+ +
+
+ + +
+ +
+
+
${dataset.Repo.OwnerName}/${dataset.Repo.Alias}${dataset.Name}
+
+ + + + ${dataset.Description} +
+
+
+ +
+
+ +
+ +
+
+
${dataset.Repo.OwnerName}/${dataset.Repo.Alias}${dataset.Name}
+
+ + + + ${dataset.Description} +
+
+
+ +
+
+ +
+ +
+
+
${dataset.Repo.OwnerName}/${dataset.Repo.Alias}${dataset.Name}
+
+ + + + ${dataset.Description} +
+
+
+ +
+
+ +
+
+
+ + +
+
+ + +
\ No newline at end of file diff --git a/templates/explore/datasets.tmpl b/templates/explore/datasets.tmpl index 0260db0df..f161b78da 100644 --- a/templates/explore/datasets.tmpl +++ b/templates/explore/datasets.tmpl @@ -181,7 +181,7 @@ {{end}} - {{.Page.Paginater.Total}} + @@ -206,5 +206,5 @@ {{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index c8a93ee8f..d992ecdcc 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -101,6 +101,32 @@ } + .panel_creator_reponam{ + display: inline-block; + border-radius: 4px; + padding: 4px; + font-size: 12px; + text-align: center; + background-color: rgba(161, 220, 255, 0.2); + color: #101010; + } + .panel_dataset_name{ + font-size: 15px; + color: #0366D6; + text-align: center; + margin-left: 1rem; + } + .panel_datset_desc{ + white-space: nowrap; + display: inline-block; + overflow: hidden; + width: 90%; + + text-overflow: ellipsis; + } + .el-dialog__body{ + padding-top:0 + }
@@ -116,6 +142,7 @@
{{template "repo/header" .}}
+
{{template "base/alert" .}}
@@ -200,53 +227,8 @@ {{end}}
- -
- - - - 点击打开 Dialog - -
- - -
- - - - -
-
-
asdasd
-
asdasdsd
-
-
- -
-
-
- - - - - - - - - -
-
-
- + + {{template "custom/select_dataset" .}}