Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
issue_assigned
  • Loading branch information
6543 committed Jun 20, 2021
commit 5af316d0800c7b4ea0473808380c915736bf9fa5
5 changes: 5 additions & 0 deletions options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ password_pwned = The password you chose is on a <a target="_blank" rel="noopener
password_pwned_err = Could not complete request to HaveIBeenPwned

[mail]
view_it_on_footer = <a href="%[1]s">View it on %[2]s</a>.

activate_account = Please activate your account
activate_account.title = %s, please activate your account
activate_account.body = <p>Hi <b>%[1]s</b>, thanks for registering at %[5]s!</p><br><p>Please click the following link to activate your account within <b>%[2]s</b>:</p><br><p><a href="%[3]s">%[3]s</a></p><br><p>Not working? Try copying and pasting it to your browser.</p><br><p>© <a target="_blank" rel="noopener noreferrer" href="%[4]s">%[5]s</a></p>
Expand All @@ -335,6 +337,9 @@ reset_password.body = <p>Hi <b>%[1]s</b>,</p><br><p>Please click the following l

register_success = Registration successful

issue_assigned.pull = @%[1]s assigned you to the pull request <a href="@%[2]s">#@%[3]d</a> in repository %[4]s.
issue_assigned.issue = @%[1]s assigned you to the issue <a href="@%[2]s">#@%[3]d</a> in repository %[4]s.

release.new.subject = %s in %s released

repo.transfer.subject_to = %s would like to transfer "%s" to %s
Expand Down
10 changes: 8 additions & 2 deletions templates/mail/issue/assigned.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@
</head>

<body>
<p>@{{.Doer.Name}} assigned you to the {{if .IsPull}}pull request{{else}}issue{{end}} <a href="{{.Link}}">#{{.Issue.Index}}</a> in repository {{.Repo}}.</p>
<p>
{{if .IsPull}}
{{.i18n.Tr "mail.issue_assigned.pull" .Doer.Name .Link .Issue.Index .Repo | Str2html}}
{{else}}
{{.i18n.Tr "mail.issue_assigned.issue" .Doer.Name .Link .Issue.Index .Repo | Str2html}}
{{end}}
</p>
<div class="footer">
<p>
---
<br>
<a href="{{.Link}}">View it on {{AppName}}</a>.
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
</p>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion templates/mail/issue/default.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<p>
---
<br>
<a href="{{.Link}}">View it on {{AppName}}</a>.
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
</p>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion templates/mail/notify/collaborator.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<p>
---
<br>
<a href="{{.Link}}">View it on {{AppName}}</a>.
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
</p>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion templates/mail/notify/repo_transfer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p>
---
<br>
<a href="{{.Link}}">View it on {{AppName}}</a>.
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion templates/mail/release.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<p>
---
<br>
<a href="{{.Release.HTMLURL}}">View it on {{AppName}}</a>.
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
</p>
</div>
</body>
Expand Down