mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-30 16:17:28 +02:00
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}}
|