From 39032c6b5f027134df2217e9555216ad60a7715e Mon Sep 17 00:00:00 2001 From: OpenIhu Date: Wed, 29 Sep 2021 17:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=A0=B7=E5=BC=8F=E5=8F=8A=E4=BF=AE=E5=A4=8D=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E4=B8=8B=E8=BD=BD=E5=9C=B0=E5=9D=80=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base/head_navbar_home.tmpl | 2 +- templates/repo/datasets/dataset_list.tmpl | 29 ++++++++++++++--------- web_src/js/components/ObsUploader.vue | 7 ++++-- web_src/less/_dataset.less | 17 +++++++++++-- 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/templates/base/head_navbar_home.tmpl b/templates/base/head_navbar_home.tmpl index 2379c1782..e6729da62 100644 --- a/templates/base/head_navbar_home.tmpl +++ b/templates/base/head_navbar_home.tmpl @@ -154,7 +154,7 @@ {{svg "octicon-person" 16}} {{.i18n.Tr "register"}} {{end}} - + {{svg "octicon-sign-in" 16}} {{.i18n.Tr "sign_in"}} diff --git a/templates/repo/datasets/dataset_list.tmpl b/templates/repo/datasets/dataset_list.tmpl index 57730501d..47716418a 100755 --- a/templates/repo/datasets/dataset_list.tmpl +++ b/templates/repo/datasets/dataset_list.tmpl @@ -1,3 +1,6 @@ + {{if .Attachments}} {{range .Attachments}}
@@ -9,23 +12,27 @@
-
+
{{svg "octicon-flame" 16}} {{(.DownloadCount | PrettyNumber)}} - - {{svg "octicon-file-binary" 16}} + + {{svg "octicon-file-binary" 16}}
-
- {{svg "octicon-file-directory" 16}} + {{if ne .DecompressState 0}} + + {{end}} {{if not .CanDel}} - {{if .IsPrivate}} {{$.i18n.Tr "dataset.private"}} {{else}} {{$.i18n.Tr "dataset.public"}} {{end}} + {{$.i18n.Tr "dataset.delete"}} + {{if .IsPrivate}} {{$.i18n.Tr "dataset.private"}} {{else}} {{$.i18n.Tr "dataset.public"}} {{end}} {{else}} {{if $.Permission.CanWrite $.UnitTypeDatasets}} - {{if $.Repository.IsPrivate}} - {{$.i18n.Tr "dataset.private"}} + {{$.i18n.Tr "dataset.delete"}} + {{if $.Repository.IsPrivate}} + {{$.i18n.Tr "dataset.private"}} {{else}} {{end}} - {{$.i18n.Tr "dataset.delete"}} {{else}} - {{if .IsPrivate}} {{$.i18n.Tr "dataset.private"}} {{else}} {{$.i18n.Tr "dataset.public"}} {{end}} + {{$.i18n.Tr "dataset.delete"}} + {{if .IsPrivate}} {{$.i18n.Tr "dataset.private"}} {{else}} {{$.i18n.Tr "dataset.public"}} {{end}} {{end}} {{end}}
diff --git a/web_src/js/components/ObsUploader.vue b/web_src/js/components/ObsUploader.vue index 1f1697a78..381cb7f95 100755 --- a/web_src/js/components/ObsUploader.vue +++ b/web_src/js/components/ObsUploader.vue @@ -6,9 +6,12 @@ />

{{ file_status_text }} - {{ status }} + {{ status }} +

+

说明:
+ - 只有zip格式的数据集才能发起云脑任务;
+ - 云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源;调试使用的数据集也需要上传到对应的环境。

-

云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源;调试使用的数据集也需要上传到对应的环境。

diff --git a/web_src/less/_dataset.less b/web_src/less/_dataset.less index 79acbf524..3bc19ef63 100644 --- a/web_src/less/_dataset.less +++ b/web_src/less/_dataset.less @@ -140,19 +140,32 @@ border: 1px solid #ffffff; } } - } + } } + .item { border-bottom: 1px solid rgba(34,36,38,.15); + .ui.buttons { + .button { + box-shadow: none !important; + } + } + } .ui.grid > .row { align-items: center; } + .title { font-size: 16px; font-weight: bold; - margin: 0 6px; + margin: 0 6px; + overflow: hidden; + padding-right: 15px; + white-space: nowrap; + text-overflow: ellipsis; + display: block; } .directory-seperator { padding: 0 4px;