From 76a1e6f7a325be1d160326ca336168f3e14faf4a Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Thu, 20 Jan 2022 15:01:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/org/course_list.tmpl | 2 +- templates/org/home_courses.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/org/course_list.tmpl b/templates/org/course_list.tmpl index 6313ad010..855550261 100644 --- a/templates/org/course_list.tmpl +++ b/templates/org/course_list.tmpl @@ -128,7 +128,7 @@
- {{if ne .CreatorID 0}} + {{if .Creator}} {{else}} diff --git a/templates/org/home_courses.tmpl b/templates/org/home_courses.tmpl index e5ab51aa7..be85005c3 100644 --- a/templates/org/home_courses.tmpl +++ b/templates/org/home_courses.tmpl @@ -169,7 +169,7 @@
{{.Alias}}

- {{if ne .CreatorID 0}} + {{if .Creator}} 贡献者:{{.Creator.Name}} {{else}} 贡献者:{{.Owner.Name}} From b9906ca8cd11879bd90de04c767e782936827119 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 20 Jan 2022 15:49:06 +0800 Subject: [PATCH 2/2] 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"}}