]> source.dussan.org Git - gitea.git/commit
Refactor commentTags functionality (#17558)
authorGusted <williamzijl7@hotmail.com>
Thu, 11 Nov 2021 06:29:30 +0000 (07:29 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Nov 2021 06:29:30 +0000 (14:29 +0800)
commit492e1c2fbd1b646f4428207942a9f89b56f7b6a9
tree3de3f782cc9278f3f85f9c73eda1741390099d8c
parenta4dc0c5a82be7fbb472ec9dba204378bfd03dc8c
Refactor commentTags functionality (#17558)

* feat: Allow multiple tags on comments

- Allow for multiples tags(Currently Poster + {Owner, Writer}).
- Utilize the Poster tag within the commentTag function and remove the
checking from templates.
- Use bitwise on CommentTags to enable specific tags.
- Don't show poster tag(view_content.tmpl) on the initial issue comment.

* Change parameters naming

* Change function name

* refactor variable wording

* Merge 'master' branch into 'tags-comments' branch

* Change naming

* `tag` -> `role`

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
models/issue.go
models/issue_comment.go
routers/web/repo/issue.go
templates/repo/issue/view_content.tmpl
templates/repo/issue/view_content/comments.tmpl