Skip to content

Commit

Permalink
Show description on individual milestone view (#12055)
Browse files Browse the repository at this point in the history
Fixes #12043

Co-authored-by: Lauris BH <lauris@nix.lv>
  • Loading branch information
mrsdizzie and lafriks authored Jun 26, 2020
1 parent 0ea4795 commit 4b66d9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions routers/repo/milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion templates/repo/issue/milestone_issues.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 4b66d9a

Please sign in to comment.