Skip to content

Commit 742e66c

Browse files
committed
Update
1 parent 31d881b commit 742e66c

32 files changed

+69
-69
lines changed

templates/package/shared/list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
{{$hasRepositoryAccess = index $.RepositoryAccessMap .Repository.ID}}
3131
{{end}}
3232
{{if $hasRepositoryAccess}}
33-
{{ctx.Locale.Tr "packages.published_by_in" $timeStr .Creator.HomeLink .Creator.GetDisplayName .Repository.Link .Repository.FullName}}
33+
{{ctx.Locale.Tr "packages.published_by_in" $timeStr .Creator.HomeLink (.Creator.GetDisplayName ctx) .Repository.Link .Repository.FullName}}
3434
{{else}}
35-
{{ctx.Locale.Tr "packages.published_by" $timeStr .Creator.HomeLink .Creator.GetDisplayName}}
35+
{{ctx.Locale.Tr "packages.published_by" $timeStr .Creator.HomeLink .Creator.GetDisplayName ctx}}
3636
{{end}}
3737
</div>
3838
</div>

templates/package/shared/versionlist.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="flex-item-main">
2626
<a class="flex-item-title" href="{{.VersionWebLink}}">{{.Version.LowerVersion}}</a>
2727
<div class="flex-item-body">
28-
{{ctx.Locale.Tr "packages.published_by" (DateUtils.TimeSince ctx .Version.CreatedUnix) .Creator.HomeLink .Creator.GetDisplayName}}
28+
{{ctx.Locale.Tr "packages.published_by" (DateUtils.TimeSince ctx .Version.CreatedUnix) .Creator.HomeLink .Creator.GetDisplayName ctx}}
2929
</div>
3030
</div>
3131
</div>

templates/package/view.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<div>
99
{{$timeStr := DateUtils.TimeSince ctx .PackageDescriptor.Version.CreatedUnix}}
1010
{{if .HasRepositoryAccess}}
11-
{{ctx.Locale.Tr "packages.published_by_in" $timeStr .PackageDescriptor.Creator.HomeLink .PackageDescriptor.Creator.GetDisplayName .PackageDescriptor.Repository.Link .PackageDescriptor.Repository.FullName}}
11+
{{ctx.Locale.Tr "packages.published_by_in" $timeStr .PackageDescriptor.Creator.HomeLink (.PackageDescriptor.Creator.GetDisplayName ctx) .PackageDescriptor.Repository.Link .PackageDescriptor.Repository.FullName}}
1212
{{else}}
13-
{{ctx.Locale.Tr "packages.published_by" $timeStr .PackageDescriptor.Creator.HomeLink .PackageDescriptor.Creator.GetDisplayName}}
13+
{{ctx.Locale.Tr "packages.published_by" $timeStr .PackageDescriptor.Creator.HomeLink (.PackageDescriptor.Creator.GetDisplayName ctx)}}
1414
{{end}}
1515
</div>
1616
</div>

templates/repo/actions/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</a>
4141
{{range .Actors}}
4242
<a class="item{{if eq .ID $.CurActor}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{.ID}}&status={{$.CurStatus}}">
43-
{{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName}}
43+
{{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName ctx}}
4444
</a>
4545
{{end}}
4646
</div>

templates/repo/actions/runs_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{ctx.Locale.Tr "actions.runs.commit"}}
2323
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
2424
{{ctx.Locale.Tr "actions.runs.pushed_by"}}
25-
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
25+
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName ctx}}</a>
2626
{{- end -}}
2727
</div>
2828
</div>

templates/repo/create.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
2222
<span class="text truncated-item-container" title="{{.ContextUser.Name}}">
2323
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
24-
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
24+
<span class="truncated-item-name">{{.ContextUser.ShortName ctx 40}}</span>
2525
</span>
2626
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
2727
<div class="menu">
2828
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}">
2929
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
30-
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
30+
<span class="truncated-item-name">{{.SignedUser.ShortName ctx 40}}</span>
3131
</div>
3232
{{range .Orgs}}
3333
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
3434
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
35-
<span class="truncated-item-name">{{.ShortName 40}}</span>
35+
<span class="truncated-item-name">{{.ShortName ctx 40}}</span>
3636
</div>
3737
{{end}}
3838
</div>

templates/repo/issue/card.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
{{if .OriginalAuthor}}
2929
{{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor}}
3030
{{else if gt .Poster.ID 0}}
31-
{{ctx.Locale.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.GetDisplayName}}
31+
{{ctx.Locale.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName ctx)}}
3232
{{else}}
33-
{{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .Poster.GetDisplayName}}
33+
{{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .Poster.GetDisplayName ctx}}
3434
{{end}}
3535
</span>
3636
</div>

templates/repo/issue/filter_actions.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</div>
119119
{{range .Assignees}}
120120
<div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/assignee">
121-
{{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName}}
121+
{{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName ctx}}
122122
</div>
123123
{{end}}
124124
</div>

templates/repo/issue/sidebar/assignee_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<span class="item empty-list {{if $issueAssignees}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_assignees"}}</span>
3232
{{range $issueAssignees}}
3333
<a class="item" href="{{$pageMeta.RepoLink}}/{{if $pageMeta.IsPullRequest}}pulls{{else}}issues{{end}}?assignee={{.ID}}">
34-
{{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName}}
34+
{{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName ctx}}
3535
</a>
3636
{{end}}
3737
</div>

templates/repo/issue/sidebar/participant_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<span class="text"><strong>{{ctx.Locale.Tr "repo.issues.num_participants" .NumParticipants}}</strong></span>
44
<div class="ui list tw-flex tw-flex-wrap">
55
{{range .Participants}}
6-
<a {{if gt .ID 0}}href="{{.HomeLink}}"{{end}} data-tooltip-content="{{.GetDisplayName}}">
6+
<a {{if gt .ID 0}}href="{{.HomeLink}}"{{end}} data-tooltip-content="{{.GetDisplayName ctx}}">
77
{{ctx.AvatarUtils.Avatar . 20 "tw-my-0.5 tw-mr-1"}}
88
</a>
99
{{end}}

0 commit comments

Comments
 (0)