mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
bc7a247b9e
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 (cherry picked from commit 17f170ee3724d8bdf2ddaad4211b12433f78ff0e)
12 lines
434 B
Go HTML Template
12 lines
434 B
Go HTML Template
{{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}}
|