Skip to content

Commit 4b66d9a

Browse files
mrsdizzielafriks
andauthored
Show description on individual milestone view (#12055)
Fixes #12043 Co-authored-by: Lauris BH <[email protected]>
1 parent 0ea4795 commit 4b66d9a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

routers/repo/milestone.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ func MilestoneIssuesAndPulls(ctx *context.Context) {
257257
return
258258
}
259259

260+
milestone.RenderedContent = string(markdown.Render([]byte(milestone.Content), ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas()))
261+
260262
ctx.Data["Title"] = milestone.Name
261263
ctx.Data["Milestone"] = milestone
262264

templates/repo/issue/milestone_issues.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
<div class="ui three column stackable grid">
66
<div class="column">
77
<h3>{{.Milestone.Name}}</h3>
8+
<div class="content">
9+
{{.Milestone.RenderedContent|Str2html}}
10+
</div>
811
</div>
912
<div class="column center aligned">
10-
1113
</div>
1214
{{if not .Repository.IsArchived}}
1315
<div class="column right aligned">

0 commit comments

Comments
 (0)