mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-15 02:57:19 +01:00
17f170ee37
Some specific events on Gitlab issues and merge requests are stored separately from comments as "resource state events". With this change, all relevant resource state events are downloaded during issue and merge request migration, and converted to comments. This PR also updates the template used to render comments to add support for migrated comments of these types. ref: https://docs.gitlab.com/ee/api/resource_state_events.html
12 lines
434 B
Handlebars
12 lines
434 B
Handlebars
{{if .comment.OriginalAuthor}}
|
|
<span class="text black">
|
|
{{svg (MigrationIcon .ctxData.Repository.GetOriginalURLHostname)}}
|
|
{{.comment.OriginalAuthor}}
|
|
</span>
|
|
{{if .ctxData.Repository.OriginalURL}}
|
|
<span class="migrate">({{ctx.Locale.Tr "repo.migrated_from" .ctxData.Repository.OriginalURL .ctxData.Repository.GetOriginalURLHostname}})</span>
|
|
{{end}}
|
|
{{else}}
|
|
{{template "shared/user/authorlink" .comment.Poster}}
|
|
{{end}}
|