|
|
@ -22,9 +22,23 @@ |
|
|
|
<div class="ui top attached header comment-header df ac sb"> |
|
|
|
<div class="ui top attached header comment-header df ac sb"> |
|
|
|
<div class="comment-header-left df ac"> |
|
|
|
<div class="comment-header-left df ac"> |
|
|
|
{{if .OriginalAuthor }} |
|
|
|
{{if .OriginalAuthor }} |
|
|
|
<span class="text black"><i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .OriginalAuthor }}</span><span class="text grey"> {{$.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} {{if $.Repository.OriginalURL}}</span><span class="text migrate">({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}</span> |
|
|
|
<span class="text black mr-2"> |
|
|
|
|
|
|
|
<i class="fa {{MigrationIcon $.Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> |
|
|
|
|
|
|
|
{{ .OriginalAuthor }} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="text grey"> |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} {{if $.Repository.OriginalURL}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="text migrate"> |
|
|
|
|
|
|
|
({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}} |
|
|
|
|
|
|
|
</span> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<span class="text grey"><a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}</span> |
|
|
|
<span class="text grey"> |
|
|
|
|
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
|
|
|
|
|
|
|
{{.Poster.GetDisplayName}} |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}} |
|
|
|
|
|
|
|
</span> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="comment-header-right actions df ac"> |
|
|
|
<div class="comment-header-right actions df ac"> |
|
|
@ -48,7 +62,7 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui attached segment"> |
|
|
|
<div class="ui attached segment comment-body"> |
|
|
|
<div class="render-content markdown"> |
|
|
|
<div class="render-content markdown"> |
|
|
|
{{if .RenderedContent}} |
|
|
|
{{if .RenderedContent}} |
|
|
|
{{.RenderedContent|Str2html}} |
|
|
|
{{.RenderedContent|Str2html}} |
|
|
@ -425,7 +439,7 @@ |
|
|
|
{{$.i18n.Tr "repo.issues.review.left_comment" | Safe}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.left_comment" | Safe}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui attached segment"> |
|
|
|
<div class="ui attached segment comment-body"> |
|
|
|
<div class="render-content markdown"> |
|
|
|
<div class="render-content markdown"> |
|
|
|
{{if .RenderedContent}} |
|
|
|
{{if .RenderedContent}} |
|
|
|
{{.RenderedContent|Str2html}} |
|
|
|
{{.RenderedContent|Str2html}} |
|
|
@ -492,32 +506,30 @@ |
|
|
|
<div class="ui comments"> |
|
|
|
<div class="ui comments"> |
|
|
|
{{range $comms}} |
|
|
|
{{range $comms}} |
|
|
|
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }} |
|
|
|
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }} |
|
|
|
<div class="comment" id="{{.HashTag}}"> |
|
|
|
<div class="comment code-comment" id="{{.HashTag}}"> |
|
|
|
{{if not .OriginalAuthor }} |
|
|
|
{{if not .OriginalAuthor }} |
|
|
|
<a class="avatar"> |
|
|
|
<a class="avatar"> |
|
|
|
<img src="{{.Poster.RelAvatarLink}}"> |
|
|
|
<img src="{{.Poster.RelAvatarLink}}"> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="content"> |
|
|
|
<div class="content"> |
|
|
|
<div class="code-comment-content"> |
|
|
|
<span class="text grey"> |
|
|
|
<span class="text grey"> |
|
|
|
{{if .OriginalAuthor }} |
|
|
|
{{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> |
|
|
|
<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}} |
|
|
|
{{else}} |
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a> |
|
|
|
<a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}} |
|
|
|
{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<div class="text comment-content"> |
|
|
|
<div class="text"> |
|
|
|
<div class="render-content markdown"> |
|
|
|
<div class="render-content markdown"> |
|
|
|
{{if .RenderedContent}} |
|
|
|
{{if .RenderedContent}} |
|
|
|
{{.RenderedContent|Str2html}} |
|
|
|
{{.RenderedContent|Str2html}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span> |
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="raw-content hide">{{.Content}}</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="raw-content hide">{{.Content}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|