aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorAndreas Shimokawa <shimokawa@fsfe.org>2020-08-06 01:18:21 +0200
committerGitHub <noreply@github.com>2020-08-06 00:18:21 +0100
commite5c5080f26669e816a23af4dae9b505150e5bcca (patch)
treee7a348125b5115175a0b591b77f5bedeb11391e0 /templates/base
parent28a7708d69b9bf6879e8992e2b2c4b33d06ee76f (diff)
downloadgitea-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.tmpl12
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>