Split participants

This commit is contained in:
Otto Richter 2024-04-24 23:01:03 +02:00
parent 019d322351
commit dfaeb4692c
2 changed files with 9 additions and 8 deletions

View file

@ -21,14 +21,7 @@
<div class="divider"></div> <div class="divider"></div>
{{if .Participants}} {{if .Participants}}
<span class="text"><strong>{{ctx.Locale.TrN .NumParticipants "repo.issues.num_participants_one" "repo.issues.num_participants_few" .NumParticipants}}</strong></span> {{template "repo/issue/view_content/sidebar/participants" .}}
<div class="ui list tw-flex tw-flex-wrap">
{{range .Participants}}
<a {{if gt .ID 0}}href="{{.HomeLink}}"{{end}} data-tooltip-content="{{.GetDisplayName}}">
{{ctx.AvatarUtils.Avatar . 28 "tw-my-0.5 tw-mr-1"}}
</a>
{{end}}
</div>
{{end}} {{end}}
{{if and $.IssueWatch (not .Repository.IsArchived)}} {{if and $.IssueWatch (not .Repository.IsArchived)}}

View file

@ -0,0 +1,8 @@
<span class="text"><strong>{{ctx.Locale.TrN .NumParticipants "repo.issues.num_participants_one" "repo.issues.num_participants_few" .NumParticipants}}</strong></span>
<div class="ui list tw-flex tw-flex-wrap">
{{range .Participants}}
<a {{if gt .ID 0}}href="{{.HomeLink}}"{{end}} data-tooltip-content="{{.GetDisplayName}}">
{{ctx.AvatarUtils.Avatar . 28 "tw-my-0.5 tw-mr-1"}}
</a>
{{end}}
</div>