mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-23 19:31:14 +08:00
291c868046
The correct thing to do is to translate the entire phrase into a single string. The previous translation assumed all languages have a space between the "joined on" and the date (and that "joined on" comes before the date). Some languages, like Hebrew, have no space between the "joined on" and the date. For example: ```ini joined_on=נרשם ב-%s ``` ("joined" becomes נרשם, "on" is ב and when paired with a date we use a dash to connect ב with the date)
30 lines
755 B
Handlebars
30 lines
755 B
Handlebars
<div class="user-cards">
|
|
{{if .CardsTitle}}
|
|
<h2 class="ui dividing header">
|
|
{{.CardsTitle}}
|
|
</h2>
|
|
{{end}}
|
|
<ul class="list">
|
|
{{range .Cards}}
|
|
<li class="item ui segment">
|
|
<a href="{{.HomeLink}}">
|
|
{{avatar $.Context .}}
|
|
</a>
|
|
<h3 class="name"><a href="{{.HomeLink}}">{{.DisplayName}}</a></h3>
|
|
|
|
<div class="meta">
|
|
{{if .Website}}
|
|
{{svg "octicon-link"}} <a href="{{.Website}}" target="_blank" rel="noopener noreferrer">{{.Website}}</a>
|
|
{{else if .Location}}
|
|
{{svg "octicon-location"}} {{.Location}}
|
|
{{else}}
|
|
{{svg "octicon-clock"}} {{$.locale.Tr "user.joined_on" (DateTime "short" .CreatedUnix) | Safe}}
|
|
{{end}}
|
|
</div>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
|
|
{{template "base/paginate" .}}
|
|
</div>
|