0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-19 00:11:24 +01:00
gitea/public/less
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
..
themes Fix global search result CSS, misc CSS tweaks (#7789) 2019-08-08 22:46:03 +08:00
_admin.less Fix code overflow (#6914) 2019-05-14 12:02:59 -04:00
_base.less Move line number to :before attr to hide from search on browser (#8002) 2019-08-28 00:59:05 +02:00
_dashboard.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_editor.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_emojify.less Allow labels to contain emoji (#6063) 2019-02-16 19:33:09 +02:00
_explore.less [Branch View] add download button (#7604) 2019-07-29 10:27:05 +08:00
_form.less replace lesshint with stylelint (#7305) 2019-06-27 08:36:36 +02:00
_home.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_install.less Clean less files (#6921) 2019-05-13 07:26:32 +01:00
_markdown.less wiki history improvements (#7391) 2019-07-11 22:45:10 +08:00
_organization.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_repository.less Add Ability for User to Customize Email Notification Frequency (#7813) 2019-08-29 17:05:42 +03:00
_review.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_tribute.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_user.less replace lesshint with stylelint (#7305) 2019-06-27 08:36:36 +02:00
index.less Pull request review/approval and comment on code (#3748) 2018-08-06 06:43:21 +02:00