mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
b093c2c43c
Sub-templates have direct access to `ctx.RootData` (the root data map), so there is no need for callers to explicitly pass it as `ctxData` via `dict`. Also fix #37569 by the way --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
12 lines
452 B
Handlebars
12 lines
452 B
Handlebars
{{if .comment.OriginalAuthor}}
|
|
<span class="tw-text-text">
|
|
{{svg (MigrationIcon ctx.RootData.Repository.GetOriginalURLHostname)}}
|
|
{{.comment.OriginalAuthor}}
|
|
</span>
|
|
{{if ctx.RootData.Repository.OriginalURL}}
|
|
<span class="migrate">({{ctx.Locale.Tr "repo.migrated_from" ctx.RootData.Repository.OriginalURL ctx.RootData.Repository.GetOriginalURLHostname}})</span>
|
|
{{end}}
|
|
{{else}}
|
|
{{template "shared/user/authorlink" .comment.Poster}}
|
|
{{end}}
|