From 4b66d9ad980aa9d84f4496cee67bcef0b82d643c Mon Sep 17 00:00:00 2001 From: mrsdizzie Date: Thu, 25 Jun 2020 21:21:13 -0400 Subject: [PATCH] Show description on individual milestone view (#12055) Fixes #12043 Co-authored-by: Lauris BH --- routers/repo/milestone.go | 2 ++ templates/repo/issue/milestone_issues.tmpl | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/routers/repo/milestone.go b/routers/repo/milestone.go index 032a848ba..9d8f34268 100644 --- a/routers/repo/milestone.go +++ b/routers/repo/milestone.go @@ -257,6 +257,8 @@ func MilestoneIssuesAndPulls(ctx *context.Context) { return } + milestone.RenderedContent = string(markdown.Render([]byte(milestone.Content), ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas())) + ctx.Data["Title"] = milestone.Name ctx.Data["Milestone"] = milestone diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 682469a14..0f4509ecb 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -5,9 +5,11 @@

{{.Milestone.Name}}

+
+ {{.Milestone.RenderedContent|Str2html}} +
-
{{if not .Repository.IsArchived}}