mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
Use RenderedContent
This commit is contained in:
parent
4ff958be73
commit
3499c4414b
@ -1777,7 +1777,9 @@ func ViewIssue(ctx *context.Context) {
|
||||
}
|
||||
} else if comment.Type == issues_model.CommentTypeChangeTimeEstimate {
|
||||
timeSec, _ := util.ToInt64(comment.Content)
|
||||
comment.Content = util.SecToTimeExact(timeSec, timeSec < 60)
|
||||
timeStr := util.SecToTimeExact(timeSec, timeSec < 60)
|
||||
|
||||
comment.RenderedContent = templates.SanitizeHTML(timeStr)
|
||||
}
|
||||
|
||||
if comment.Type == issues_model.CommentTypeClose || comment.Type == issues_model.CommentTypeMergePull {
|
||||
|
@ -685,7 +685,7 @@
|
||||
{{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}}
|
||||
<span class="text grey muted-links">
|
||||
{{template "shared/user/authorlink" .Poster}}
|
||||
{{ctx.Locale.Tr "repo.issues.change_time_estimate_at" .Content $createdStr | SafeHTML}}
|
||||
{{ctx.Locale.Tr "repo.issues.change_time_estimate_at" .RenderedContent $createdStr | SafeHTML}}
|
||||
</span>
|
||||
</div>
|
||||
{{end}}
|
||||
|
Loading…
Reference in New Issue
Block a user