From abf6c3a8e31711b8a22525cabb892b5fcdab4e86 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 29 Nov 2016 14:57:36 +0800 Subject: [PATCH] bug fixed caused by #295 (#299) --- templates/explore/repo_list.tmpl | 2 +- templates/repo/home.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index a4beb2014..2cf7202fd 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -16,7 +16,7 @@ {{.NumForks}} - {{if .DescriptionHtml}}

{{.DescriptionHtml}}

{{end}} + {{if .DescriptionHTML}}

{{.DescriptionHTML}}

{{end}}

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}

{{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 52d93a213..6e86518da 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -4,7 +4,7 @@
{{template "base/alert" .}}

- {{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} + {{if .Repository.DescriptionHTML}}{{.Repository.DescriptionHTML}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} {{.Repository.Website}}