]> source.dussan.org Git - gitea.git/commit
[Feature] Custom Reactions (#8886)
author6543 <6543@obermui.de>
Sun, 1 Dec 2019 22:57:24 +0000 (23:57 +0100)
committertechknowlogick <techknowlogick@gitea.io>
Sun, 1 Dec 2019 22:57:24 +0000 (17:57 -0500)
commit668eaf95d581f68507523563d0701000a4505055
tree4a0bf0aea58ca92f7fde2af0881dd518861512cd
parent674bc772fb213e2b79478438d16835d387865ac3
[Feature] Custom Reactions (#8886)

* add [ui] Reactions

* move contend check from form to go functions

* use else if

* check if reaction is allowed only on react
(so previous custom reaction can be still removed)

* use $.AllowedReactions in templates

* use ctx.Flash.Error

* use it there too

* add redirection

* back to server error
because a wrong reaction is a template issue ...

* add emoji list link

* add docs entry

* small wording nit
suggestions from @jolheiser - thx

* same reactions as github

* fix PR reactions

* handle error so template JS could check

* Add Integrations Test

* add REACTIONS setting to cheat-sheet doc page
13 files changed:
custom/conf/app.ini.sample
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/advanced/customizing-gitea.en-us.md
integrations/issue_test.go
modules/auth/repo_form.go
modules/setting/setting.go
routers/repo/issue.go
routers/repo/pull.go
templates/repo/diff/comments.tmpl
templates/repo/issue/view_content.tmpl
templates/repo/issue/view_content/add_reaction.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/repo/issue/view_content/reactions.tmpl