forgejo/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 Templates for extra links in top navbar and repo tool tabs. (#3308) 2018-01-10 08:19:50 +02:00
explore Repository avatar fallback configuration (#7087) 2019-06-02 14:40:12 +08:00
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 Add support of utf8mb4 for mysql (#6992) 2019-05-24 00:15:26 -04:00