From b9906ca8cd11879bd90de04c767e782936827119 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 20 Jan 2022 15:49:06 +0800 Subject: [PATCH] fix issue --- options/locale/locale_en-US.ini | 4 ++++ options/locale/locale_zh-CN.ini | 3 +++ templates/repo/courseHome.tmpl | 11 ++++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 0d5c1db14..6c14d769f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -873,6 +873,10 @@ get_repo_info_error=Can not get the information of the repository. generate_statistic_file_error=Fail to generate file. repo_stat_inspect=ProjectAnalysis all=All + +computing.all = All +computing.Introduction=Introduction + modelarts.status=Status modelarts.createtime=CreateTime modelarts.version_nums = Version Nums diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index aefe62b95..63719130f 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -881,6 +881,9 @@ generate_statistic_file_error=生成文件失败。 repo_stat_inspect=项目分析 all=所有 +computing.all=全部 +computing.Introduction=简介 + modelarts.status=状态 modelarts.createtime=创建时间 modelarts.version_nums=版本数 diff --git a/templates/repo/courseHome.tmpl b/templates/repo/courseHome.tmpl index 3f2cbe01a..7629fc1c6 100644 --- a/templates/repo/courseHome.tmpl +++ b/templates/repo/courseHome.tmpl @@ -105,7 +105,7 @@ {{end}}
- 简介: + {{.i18n.Tr "repo.computing.Introduction"}}: {{if .Repository.DescriptionHTML}} {{.Repository.DescriptionHTML}} {{else}} @@ -121,7 +121,8 @@
- {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}}添加标签 + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}} + {{.i18n.Tr "repo.issues.new.add_labels_title"}}