From df75bcc71c6f3e04a373d3350c4dad8fb02385fc Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 19 Jan 2022 11:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/org/home.go | 1 + templates/org/course_list.tmpl | 7 +++---- templates/org/home_courses.tmpl | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/routers/org/home.go b/routers/org/home.go index 4eff151bf..c9769f559 100755 --- a/routers/org/home.go +++ b/routers/org/home.go @@ -158,6 +158,7 @@ func Home(ctx *context.Context) { for _, tag := range tags { for _, repo := range tag.RepoList { repo.GetCreator() + repo.GetOwner() } } diff --git a/templates/org/course_list.tmpl b/templates/org/course_list.tmpl index 1f4378036..6313ad010 100644 --- a/templates/org/course_list.tmpl +++ b/templates/org/course_list.tmpl @@ -128,11 +128,10 @@
- - {{if .Creator}} - + {{if ne .CreatorID 0}} + {{else}} - + {{end}} {{$.i18n.Tr "org.repo_updated"}} :   {{TimeSinceUnixShort .UpdatedUnix}} diff --git a/templates/org/home_courses.tmpl b/templates/org/home_courses.tmpl index a06f06c20..70ea9b421 100644 --- a/templates/org/home_courses.tmpl +++ b/templates/org/home_courses.tmpl @@ -208,7 +208,11 @@
{{.Alias}}

+ {{if ne .CreatorID 0}} 贡献者:{{.Creator.Name}} + {{else}} + 贡献者:{{.Owner.Name}} + {{end}}