forgejo-federation/templates
Gary Kim f1c414882c Add Ability for User to Customize Email Notification Frequency (#7813)
* Add Backend Logic for Toggling Email Notification

This commit adds the backend logic for
allowing users to enable or disable email
notifications. The implementation ensures
that only issue notification emails get disabled
and important emails are still sent regardless
of the setting.

The UI to toggle this setting has not yet been
implemented.

* Add UI and complete user email notification enable

This commit completes the functionality to allow
users to disable their own email notifications.

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add Third Option for Only Email on Mention

Signed-off-by: Gary Kim <gary@garykim.dev>

* Readd NOT NULL to new preference string

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add Tests and Rewrite Comment

Signed-off-by: Gary Kim <gary@garykim.dev>

* Allow admin to set default email frequency

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add new config option to docs

Signed-off-by: Gary Kim <gary@garykim.dev>

* Fix a few mistakes

Signed-off-by: Gary Kim <gary@garykim.dev>

* Only update required columns

Signed-off-by: Gary Kim <gary@garykim.dev>

* Simplify an error check

Signed-off-by: Gary Kim <gary@garykim.dev>

* Make email_notification_preference column in DB be VARCHAR(20)

Signed-off-by: Gary Kim <gary@garykim.dev>

* Handle errors

Signed-off-by: Gary Kim <gary@garykim.dev>

* Update models/migrations/v93.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-08-29 17:05:42 +03:00
..
admin Fix adding default Telegram webhook (#7972) 2019-08-26 18:59:10 -04:00
base jQuery 3 (#7425) 2019-07-12 08:21:44 +03: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 UX + Security current user password reset (#5042) 2019-04-18 10:23:59 +03:00
org org/members: display 2FA members states + optimize sql requests (#7621) 2019-08-02 12:06:27 -04:00
pwa jQuery 3 (#7425) 2019-07-12 08:21:44 +03:00
repo Changed black to white for (read) number label on issue list (#8000) 2019-08-28 12:20:52 +02:00
status Minor UI tweaks (#5980) 2019-02-19 18:09:47 -05:00
swagger Update swagger to 0.20.1 (#8010) 2019-08-28 08:55:22 +02:00
user Add Ability for User to Customize Email Notification Frequency (#7813) 2019-08-29 17:05:42 +03:00
home.tmpl Fix typo in home.tmpl (#7452) 2019-07-15 19:26:23 -04:00
install.tmpl Add support of utf8mb4 for mysql (#6992) 2019-05-24 00:15:26 -04:00