mirror of
https://codeberg.org/forgejo/forgejo
synced 2025-09-17 05:12:54 +02:00
Increase consistency of rendering the ghost user, by re-using the same template. Also add a tooltip to the shared template, to explain the ghost user. Closes: #5630
7 lines
367 B
Go HTML Template
7 lines
367 B
Go HTML Template
{{if eq .ID -1}}
|
|
<a class="author text black tw-font-semibold muted"
|
|
data-tooltip-content="{{ctx.Locale.Tr "user.ghost.tooltip"}}">Ghost</a>
|
|
{{else}}
|
|
<a class="author text black tw-font-semibold muted"{{if gt .ID 0}} href="{{.HomeLink}}"{{end}}>{{.GetDisplayName}}</a>
|
|
{{if .IsBot}}<span class="ui basic label tw-p-1 tw-align-baseline">bot</span>{{end}}
|
|
{{end}}
|