0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 11:54:45 +01:00
gitea/templates
David Svantesson 6aa3f8bc29 Mail assignee when issue/pull request is assigned (#8546)
* Send email to assigned user

* Only send mail if enabled

* Mail also when assigned through API

* Need to refactor functions from models to issue service

* Refer to issue index rather than ID

* Disable email notifications completly at initalization if global disable

* Check of user enbled mail shall be in mail notification function only

* Initialize notifications from routers init function.

* Use the assigned comment when sending assigned mail

* Refactor so that assignees always added as separate step when new issue/pr.

* Check error from AddAssignees

* Check if user can be assiged to issue or pull request

* Missing return

* Refactor of CanBeAssigned check.

CanBeAssigned shall have same check as UI.

* Clarify function names (toggle rather than update/change), and clean up.

* Fix review comments.

* Flash error if assignees was not added when creating issue/pr

* Generate error if assignee users doesn't exist
2019-10-25 22:46:37 +08:00
..
admin [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
base Improve OGP (#8637) 2019-10-23 18:54:13 +01:00
custom
explore
mail Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
org [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
pwa [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
repo Add 'Alt + click' feature to exclude labels (#8199) 2019-10-23 17:29:14 +01:00
status [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
swagger [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
user Use AppSubUrl for more redirections (#8647) 2019-10-23 22:04:22 +01:00
home.tmpl [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
install.tmpl