Browse Source
Show description on individual milestone view (#12055)
Fixes #12043
Co-authored-by: Lauris BH <lauris@nix.lv>
for-closed-social
mrsdizzie
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
1 deletions
-
routers/repo/milestone.go
-
templates/repo/issue/milestone_issues.tmpl
|
|
@ -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 |
|
|
|
|
|
|
|
|
|
@ -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"> |
|
|
|