diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 2a9413bde..d65463e81 100755 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -99,7 +99,7 @@ func NewFuncMap() []template.FuncMap { return setting.UI.Reactions }, "DebugAttachSize": func() int { - return setting.DebugAttachSize * 1024 * 1024 * 1024 + return setting.DebugAttachSize * 1000 * 1000 * 1000 }, "AvatarLink": models.AvatarLink, "Safe": Safe, diff --git a/web_src/js/components/dataset/selectDataset.vue b/web_src/js/components/dataset/selectDataset.vue index 70efebb4e..3352f1267 100755 --- a/web_src/js/components/dataset/selectDataset.vue +++ b/web_src/js/components/dataset/selectDataset.vue @@ -180,7 +180,7 @@ class="unzip-failed" v-if="data.Size > exceedSize" > - {{ i18n.dataset_exceeds_failed }} + {{ i18n.dataset_exceeds_failed }}{{exceedSize/(1000*1000*1000)}}G @@ -1002,7 +1002,6 @@ export default { this.type = $(".cloudbrain-type").data("cloudbrain-type"); this.repoLink = $(".cloudbrain-type").data("repo-link"); this.exceedSize = $(".cloudbrain-type").data("exceed-size"); - console.log("this.exceedSize",this.exceedSize) if ($(".cloudbrain-type").data("dataset-uuid")) { this.hasSelectDatasetList = $(".cloudbrain-type") .data("dataset-uuid") diff --git a/web_src/js/features/i18nVue.js b/web_src/js/features/i18nVue.js index ca9ea667a..68ee4f347 100644 --- a/web_src/js/features/i18nVue.js +++ b/web_src/js/features/i18nVue.js @@ -74,7 +74,7 @@ export const i18nVue = { dataset_search_placeholder: "搜数据集名称/描述...", dataset_unziping: "正在解压缩", dataset_unzip_failed: "解压失败", - dataset_exceeds_failed: "数据集大小超过20G", + dataset_exceeds_failed: "数据集大小超过", dataset_my_upload: "我上传的", dataset_current_repo: "本项目", dataset_public: "公开数据集", @@ -196,7 +196,7 @@ export const i18nVue = { dataset_search_placeholder: "Search dataset name/description ...", dataset_unziping: "Decompressing", dataset_unzip_failed: "Decompression failed", - dataset_exceeds_failed: "Dataset size exceeds 20G", + dataset_exceeds_failed: "Dataset size exceeds ", dataset_my_upload: "Upload by me", dataset_current_repo: "Current Repository", dataset_public: "Public dataset",