You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
5 years ago
..
admin Fix adding default Telegram webhook (#7972) 5 years ago
base jQuery 3 (#7425) 5 years ago
custom Templates for extra links in top navbar and repo tool tabs. (#3308) 7 years ago
explore Repository avatar fallback configuration (#7087) 5 years ago
mail UX + Security current user password reset (#5042) 5 years ago
org org/members: display 2FA members states + optimize sql requests (#7621) 5 years ago
pwa jQuery 3 (#7425) 5 years ago
repo Changed black to white for (read) number label on issue list (#8000) 5 years ago
status Minor UI tweaks (#5980) 5 years ago
swagger Update swagger to 0.20.1 (#8010) 5 years ago
user Add Ability for User to Customize Email Notification Frequency (#7813) 5 years ago
home.tmpl Fix typo in home.tmpl (#7452) 5 years ago
install.tmpl Add support of utf8mb4 for mysql (#6992) 5 years ago