summaryrefslogtreecommitdiffstats
path: root/templates/mail
Commit message (Collapse)AuthorAgeFilesLines
* Style blockquote for default issue mail template (#10024)mrsdizzie2020-01-271-0/+1
| | | | Style blockquotes as one might expect for html email to disinguish them from other text
* Some more e-mail notification fixes (#9596)mrsdizzie2020-01-033-15/+31
| | | | | | | | | | | | | | | | | | | | | * Some more e-mail notification fixes A few more small e-mail notification fixes/changes * Style footer of notification email to be smaller * Include text for when pull request is merged * Don't include original body of issue or PR when merging/closing by setting issue.Content to "" in these cases * Set Re: prefix and meessage-ID headers based on actName instead of checking for a comment. This fixes a bug where certain actions that didn't have a comment were setting Message-ID instead of In-Reply-To which caused some mail programs not to show those messages as they would have had the same Message-ID as a previous message. Also fixes the case where a final comment and closing message would have been displayed out of order if you didn't have a copy of the original issue/pr cretion message. * Update other template footers for consistency
* Update default issue template (#9568)mrsdizzie2019-12-311-7/+15
| | | | | | | | | Some small changes: * Include text if approve/comment/request changes on PR * List filename for review comments * Bold username when mentioned This will stop empty body messages when approving PR on gitea.com
* Add review comments to mail notifications (#8996)guillep2k2019-11-151-1/+13
|
* Use templates for issue e-mail subject and body (#8329)guillep2k2019-11-074-35/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add template capability for issue mail subject * Remove test string * Fix trim subject length * Add comment to template and run make fmt * Add information for the template * Rename defaultMailSubject() to fallbackMailSubject() * General rewrite of the mail template code * Fix .Doer name * Use text/template for subject instead of html * Fix subject Re: prefix * Fix mail tests * Fix static templates * [skip ci] Updated translations via Crowdin * Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) * Expose db.SetMaxOpenConns and allow other dbs to set their connection params * Add note about port exhaustion Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Prevent .code-view from overriding font on icon fonts (#8614) * Correct some outdated statements in the contributing guidelines (#8612) * More information for drone-cli in CONTRIBUTING.md * Increases the version of drone-cli to 1.2.0 * Adds a note for the Docker Toolbox on Windows Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Fix the url for the blog repository (now on gitea.com) Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Remove TrN due to lack of lang context * Redo templates to match previous code * Fix extra character in template * Unify PR & Issue tempaltes, fix format * Remove default subject * Add template tests * Fix template * Remove replaced function * Provide User as models.User for better consistency * Add docs * Fix doc inaccuracies, improve examples * Change mail footer to math AppName * Add test for mail subject/body template separation * Add support for code review comments * Update docs/content/doc/advanced/mail-templates-us.md Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Mail assignee when issue/pull request is assigned (#8546)David Svantesson2019-10-251-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* UX + Security current user password reset (#5042)AJ ONeal2019-04-182-4/+5
| | | | | | | | | | | | | | * allow current user to reset their own password * handle reset password edge cases properly and consistently * remove dangling assignment * properly label account recovery instead of reset password * remove 'Click here' from button * update English-only account-recovery templates
* Make distinction between DisplayName and Username in email templates (#6495)mrsdizzie2019-04-044-8/+8
| | | | | | | | | | | | | | | | | | * Make distinction between DisplayName and Username in email templates Store the actual username in the variable named Username and store the separate DisplayName in another variable. This allows us to access the actual username when we need, which currently fails if a user has set a full name. Fixes #6161 * Use u.Name directly No need for extra function, also change use in all mail sending functions here * Don't include Username when not used
* Add `noreferrer` to rel='noopener` for <a> tags (#4328)cezar972018-07-034-4/+4
|
* Mention the possibility of resetting the password for new accounts (#3812)Michael Kuhn2018-04-191-0/+1
| | | | | This solves the problem of administrators creating accounts for users that then do not know their initial password (without the administrator sending it to them via some other channel).
* Fix copy in email templates (#2801)Arif2017-10-292-2/+2
|
* xxx_active_code_live setting in printed in hours and minutes instead … (#1814)Jonas Östanbäck2017-05-293-3/+3
| | | | | | * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
* Removed email copyright year (#1348)Jonas2017-03-214-4/+4
|
* Fixed project name on repo template mailAvelino2016-12-023-3/+3
|
* Added rel="noopener" to target="_blank" hrefs (#327)Bwko2016-12-024-4/+4
| | | | | | * Added rel="noopener" to target="_blank" hrefs * Replaced gogs.io/docs with docs.gitea.io
* Refactor User.Id to User.IDUnknwon2016-07-241-1/+1
|
* #2854 fix no mail notification when issue is closed/reopenedUnknwon2016-07-167-24/+40
|
* Indent all templates with tabsAdam Strzelecki2015-12-086-50/+50
| | | | | | | | | | | | This commit improves templates readability, since all of them use consistent indent with all template command blocks indented too. 1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks such as {{if}} {{with}} 2. Cleans all trailing white-space 3. Adds trailing last line-break to each file
* fix #1979Unknwon2015-11-181-0/+1
|
* #1525 Triggere mailer for admin created accountsUnknwon2015-09-252-22/+13
|
* finish all new template for current onesUnknwon2015-09-172-18/+17
|
* finish new auth e-mailsUnknwon2015-09-172-56/+23
|
* user gomail and new activate account email tplUnknwon2015-09-173-60/+31
| | | | | | - #1496: fallback plain text - #1002: add date header - #913: fix encoding of header
* Template for email activation emailPeter2014-12-171-0/+30
|
* Remove APP_LOGO settingMathieu Gagnon2014-09-133-3/+3
|
* Removed trailing white spacesTristan Storch2014-08-301-1/+1
| | | | | | | | | | Removed trailing whitespaces with ```sh for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done ``` and some handwork.
* In progress of name template name constantUnknown2014-06-221-0/+0
|
* Add mail notify for new collaboratorUnknown2014-05-052-0/+34
|
* Corrected grammar and spelling mistakes in templates. Normalizing to ↵twitchyliquid642014-04-203-10/+10
| | | | American English.
* Add reset password, fix #58Unknown2014-04-052-25/+33
|
* Finish verify emailUnknown2014-03-193-38/+17
|
* Add register mail tplUnknown2014-03-194-0/+112