diff options
author | Andreas Shimokawa <shimokawa@fsfe.org> | 2020-08-06 01:18:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 00:18:21 +0100 |
commit | e5c5080f26669e816a23af4dae9b505150e5bcca (patch) | |
tree | e7a348125b5115175a0b591b77f5bedeb11391e0 /templates/base | |
parent | 28a7708d69b9bf6879e8992e2b2c4b33d06ee76f (diff) | |
download | gitea-e5c5080f26669e816a23af4dae9b505150e5bcca.tar.gz gitea-e5c5080f26669e816a23af4dae9b505150e5bcca.zip |
In issue comments, put issue participants also in completion list when hitting @ (#12433)
Previous behaviour was only to have completion for project members
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index a0710a77bc..61e8f39ac9 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -78,12 +78,16 @@ EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}}, }, {{if .RequireTribute}} - tributeValues: [ + tributeValues: Array.from(new Map([ + {{ range .Participants }} + ['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}', + name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}], + {{ end }} {{ range .Assignees }} - {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}', - name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}, + ['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}', + name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}], {{ end }} - ], + ]).values()), {{end}} }; </script> |