mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 05:57:50 +01:00
bug: fix wrong poster message for code comment on Pull view (#11721)
As title, maybe fix one of issue in #11705 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
8e035f81c0
commit
de0b2d4e32
@ -475,13 +475,19 @@
|
|||||||
{{range $comms}}
|
{{range $comms}}
|
||||||
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }}
|
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }}
|
||||||
<div class="comment" id="{{.HashTag}}">
|
<div class="comment" id="{{.HashTag}}">
|
||||||
<a class="avatar">
|
{{if not .OriginalAuthor }}
|
||||||
<img src="{{.Poster.RelAvatarLink}}">
|
<a class="avatar">
|
||||||
</a>
|
<img src="{{.Poster.RelAvatarLink}}">
|
||||||
|
</a>
|
||||||
|
{{end}}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="code-comment-content">
|
<div class="code-comment-content">
|
||||||
<span class="text grey">
|
<span class="text grey">
|
||||||
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
|
{{if .OriginalAuthor }}
|
||||||
|
<span class="text black"><i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .OriginalAuthor }}</span><span class="text grey"> {{if $.Repository.OriginalURL}}</span><span class="text migrate">({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
|
||||||
|
{{else}}
|
||||||
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
|
||||||
|
{{end}}
|
||||||
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}}
|
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}}
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<div class="render-content markdown">
|
<div class="render-content markdown">
|
||||||
|
Loading…
Reference in New Issue
Block a user