summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2020-06-25 21:21:13 -0400
committerGitHub <noreply@github.com>2020-06-25 21:21:13 -0400
commit4b66d9ad980aa9d84f4496cee67bcef0b82d643c (patch)
tree1f41bf0b8e2303b048a7e941d9a89ea3fb578c0b
parent0ea479561d758b2df51a4719379d32f3d096f590 (diff)
downloadgitea-4b66d9ad980aa9d84f4496cee67bcef0b82d643c.tar.gz
gitea-4b66d9ad980aa9d84f4496cee67bcef0b82d643c.zip
Show description on individual milestone view (#12055)
Fixes #12043 Co-authored-by: Lauris BH <lauris@nix.lv>
-rw-r--r--routers/repo/milestone.go2
-rw-r--r--templates/repo/issue/milestone_issues.tmpl4
2 files changed, 5 insertions, 1 deletions
diff --git a/routers/repo/milestone.go b/routers/repo/milestone.go
index 032a848ba7..9d8f34268d 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 682469a141..0f4509ecbc 100644
--- a/templates/repo/issue/milestone_issues.tmpl
+++ b/templates/repo/issue/milestone_issues.tmpl
@@ -5,9 +5,11 @@
<div class="ui three column stackable grid">
<div class="column">
<h3>{{.Milestone.Name}}</h3>
+ <div class="content">
+ {{.Milestone.RenderedContent|Str2html}}
+ </div>
</div>
<div class="column center aligned">
-
</div>
{{if not .Repository.IsArchived}}
<div class="column right aligned">