From c9b78df4dac3c12e980947402455a72176982045 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 6 Apr 2022 11:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- options/locale/locale_en-US.ini | 1 + options/locale/locale_zh-CN.ini | 1 + routers/repo/cloudbrain.go | 3 +++ templates/repo/cloudbrain/show.tmpl | 38 +++++++++++++++++++++++++++-- 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index bed7c46e0..7c6e50892 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -912,6 +912,7 @@ datasets = Datasets datasets.desc = Enable Dataset cloudbrain_helper=Use GPU/NPU resources to open notebooks, model training tasks, etc. cloudbrain.exitinfo=Exit Information +cloudbrain.platform=Platform model_manager = Model model_noright=No right model_rename=Duplicate model name, please modify model name. diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 7bf28aa10..5a70a0e6f 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -959,6 +959,7 @@ cloudbrain_query_fail=查询云脑任务失败。 cloudbrain.mirror_tag = 镜像标签 cloudbrain.mirror_description = 镜像描述 cloudbrain.exitinfo=退出信息 +cloudbrain.platform=平台 record_begintime_get_err=无法获取统计开始时间。 parameter_is_wrong=输入参数错误,请检查输入参数。 diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index 33ce5debb..de6f97fc9 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -525,6 +525,9 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo version_list_task = append(version_list_task, task) ctx.Data["version_list_task"] = version_list_task ctx.Data["debugListType"] = debugListType + ctx.Data["code_path"] = cloudbrain.CodeMountPath + ctx.Data["dataset_path"] = cloudbrain.DataSetMountPath + ctx.Data["model_path"] = cloudbrain.ModelMountPath ctx.Data["canDownload"] = cloudbrain.CanDeleteJob(ctx, task) ctx.HTML(200, tpName) } diff --git a/templates/repo/cloudbrain/show.tmpl b/templates/repo/cloudbrain/show.tmpl index b1dd6e661..1eaede8fd 100755 --- a/templates/repo/cloudbrain/show.tmpl +++ b/templates/repo/cloudbrain/show.tmpl @@ -295,6 +295,30 @@ td, th { + + + + {{$.i18n.Tr "cloudbrain.dataset_storage_path"}} + + + +
+ {{$.dataset_path}} +
+ + + + + + {{$.i18n.Tr ""cloudbrain.code_storage_path"}} + + + +
+ {{$.code_path}} +
+ + @@ -306,7 +330,7 @@ td, th { - 平台 + {{$.i18n.Tr "repo.cloudbrain.platform"}} @@ -362,7 +386,17 @@ td, th { - + + + {{$.i18n.Tr "cloudbrain.model_storage_path"}} + + + +
+ {{$.model_path}} +
+ +