diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2f5669b92..ee9fa4877 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -734,7 +734,8 @@ private = private public = public dir = directory back = back -copy_url=copy download url +copy_url=Copy Download Url +copy_md5 = Copy MD5 directory=preview of the datasets create_label_task=create label task visibility = visibility @@ -785,11 +786,11 @@ category.computer_vision= computer vision category.natural_language_processing= natural language processing category.speech_processing= speech processing category.computer_vision_natural_language_processing= computer vision and natural language processing -attachment.delete= delete this version of dataset +attachment.delete= Delete this version of dataset attachment.delete_desc= Are you sure you will delete this version of dataset, once deleted can not be recovery public= public private= private -delete= delete +delete= Delete select_dataset=Select Dataset current_project=Current Project owner_dataset=Owner Dataset @@ -801,7 +802,7 @@ dataset_name = Dataset Name dataset_description = Dataset Description select_category = Select Category select_task = Select Research Direction/Application Area -dataset_name_tooltips = Please enter letters, numbers, _ and - up to 64 characters and cannot end with a dash (-). +dataset_name_tooltips = Please enter letters, numbers, _ and - up to 100 characters. dataset_no_create = No dataset has been created yet dataset_explain = Dataset: CloudBrain I provides CPU/GPU resources, Cloudbrain II provides Ascend NPU resources, and the data set used for debugging also needs to be uploaded to the corresponding environment; dataset_instructions_for_use = Instructions for use: You can refer to Qizhi AI Collaboration Platform @@ -820,10 +821,13 @@ file_description = File Description data_upload = Dataset Upload illustrate = Illustrate illustrate.only = Only Datasets In -illustrate.zip = Zip Format +illustrate.zip = zip/tar.gz Format illustrate.fisrt_end = Can Initiate Cloudbrain Tasks modify_dataset = Modify Dataset modify_dataset_description = Modify Dataset Description +search_dataset = Search Dataset Files +unzip_tooltips = If it has not been decompressed for a long time, please check whether the compressed package has encrypted files or file errors +zip_failed = Decompression failed, please check whether the compressed package is encrypted or contact technical support [repo] owner = Owner repo_name = Repository Name @@ -908,7 +912,7 @@ cloudbrain1 = cloudbrain1 cloudbrain2 = cloudbrain2 cloudbrain_selection = select cloudbrain cloudbrain_platform_selection = Select the cloudbrain platform you want to use: -confirm_choice = confirm +confirm_choice = Confirm cloudbran1_tips = Only data in zip format can create cloudbrain tasks cloudbrain_creator=Creator cloudbrain_task = Task Name diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 07237fd3a..bc802734b 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -806,7 +806,7 @@ dataset_name=数据集名称 dataset_description = 数据集描述 select_category = 选择分类 select_task = 选择研究方向/应用领域 -dataset_name_tooltips = 请输入字母、数字、_和-,最长64个字符,且不能以中划线(-)结尾。 +dataset_name_tooltips = 请输入字母、数字、_和-,最长100个字符。 dataset_no_create = 还未创建过数据集 dataset_explain = 数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源,调试使用的数据集也需要上传到对应的环境; dataset_instructions_for_use = 使用说明:可以参考启智AI协作平台 @@ -825,10 +825,13 @@ file_description = 文件描述 data_upload = 数据上传 illustrate = 说明 illustrate.only = 只有 -illustrate.zip = zip格式 +illustrate.zip = zip/tar.gz格式 illustrate.fisrt_end = 的数据集才能发起云脑任务 modify_dataset = 修改数据集 modify_dataset_description = 修改数据集文件描述 +search_dataset = 搜索数据集文件 +unzip_tooltips = 如果长时间未解压,请检查压缩包是否有加密文件或者文件错误 +zip_failed = 解压失败,请检查压缩包是否有加密或者联系技术支持人员。 [repo] owner=拥有者 diff --git a/routers/repo/dataset.go b/routers/repo/dataset.go index b59d4b429..11bd99149 100755 --- a/routers/repo/dataset.go +++ b/routers/repo/dataset.go @@ -107,6 +107,7 @@ func QueryDataSet(ctx *context.Context) []*models.Attachment { func DatasetIndex(ctx *context.Context) { log.Info("dataset index 1") MustEnableDataset(ctx) + ctx.Data["PageIsDataset"] = true repo := ctx.Repo.Repository @@ -153,7 +154,7 @@ func DatasetIndex(ctx *context.Context) { } ctx.Data["Page"] = pager - ctx.Data["PageIsDataset"] = true + ctx.Data["Title"] = ctx.Tr("dataset.show_dataset") ctx.Data["Link"] = ctx.Repo.RepoLink + "/datasets" ctx.Data["dataset"] = dataset diff --git a/templates/custom/select_dataset.tmpl b/templates/custom/select_dataset.tmpl index e63b38202..1b0871f03 100644 --- a/templates/custom/select_dataset.tmpl +++ b/templates/custom/select_dataset.tmpl @@ -30,7 +30,7 @@ >
- +
@@ -49,11 +49,11 @@ - 解压中 + 解压中 - 解压失败 + 解压失败 @@ -75,11 +75,11 @@ - 解压中 + 解压中 - 解压失败 + 解压失败 @@ -100,11 +100,11 @@ - 解压中 + 解压中 - 解压失败 + 解压失败 @@ -125,11 +125,11 @@ - 解压中 + 解压中 - 解压失败 + 解压失败 diff --git a/templates/explore/dataset_left.tmpl b/templates/explore/dataset_left.tmpl index 44d01cf3a..23c252557 100644 --- a/templates/explore/dataset_left.tmpl +++ b/templates/explore/dataset_left.tmpl @@ -27,7 +27,7 @@
{{range $category := categories}} {{$Cate := $.i18n.Tr (printf "dataset.category.%s" $category)}} - {{$Cate}} + {{$Cate}} {{end}}
@@ -44,7 +44,7 @@
{{range $task := tasks}} {{$Task := $.i18n.Tr (printf "dataset.task.%s" $task)}} - {{$Task}} + {{$Task}} {{end}}
@@ -59,7 +59,7 @@
{{range $license := licenses}} - {{$license}} + {{$license}} {{end}}
diff --git a/templates/explore/dataset_list.tmpl b/templates/explore/dataset_list.tmpl index 242f99dc9..1d22b62ec 100755 --- a/templates/explore/dataset_list.tmpl +++ b/templates/explore/dataset_list.tmpl @@ -25,7 +25,7 @@ {{range .Datasets}}
- + {{.Repo.OwnerName}} / {{.Repo.Alias}}
diff --git a/templates/explore/datasets.tmpl b/templates/explore/datasets.tmpl index 924f6efba..238131077 100644 --- a/templates/explore/datasets.tmpl +++ b/templates/explore/datasets.tmpl @@ -65,6 +65,14 @@ filter: grayscale(100%); opacity: .5; } +.tag.tag-active{ + background-color: #0366d6; + color: #ffffff; +} +.tag-gray{ + background-color: #f8f9fa; + color: #415058; +} .tag { align-items: center; display: inline-flex; @@ -133,8 +141,8 @@
{{range $k, $v :=.Datasets}} -
-
+ + {{end}}
@@ -171,10 +175,10 @@
-
+
{{$.i18n.Tr "dataset.dataset_file_name"}}
-
+
{{$.i18n.Tr "repo.model.manage.size"}}
@@ -199,7 +203,7 @@
-
+
{{if .Description}}
{{.Description}}
{{$.i18n.Tr "dataset.download"}}:{{.DownloadCount}}
@@ -220,7 +224,7 @@ -->
-
+
{{.Size | FileSize}}
@@ -241,7 +245,7 @@
{{.CreatedUnix | TimeSinceUnix1}}
-
+