Skip to content

Commit 5af316d

Browse files
committed
issue_assigned
1 parent 41d6eb2 commit 5af316d

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

options/locale/locale_en-US.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ password_pwned = The password you chose is on a <a target="_blank" rel="noopener
317317
password_pwned_err = Could not complete request to HaveIBeenPwned
318318
319319
[mail]
320+
view_it_on_footer = <a href="%[1]s">View it on %[2]s</a>.
321+
320322
activate_account = Please activate your account
321323
activate_account.title = %s, please activate your account
322324
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>
@@ -335,6 +337,9 @@ reset_password.body = <p>Hi <b>%[1]s</b>,</p><br><p>Please click the following l
335337
336338
register_success = Registration successful
337339
340+
issue_assigned.pull = @%[1]s assigned you to the pull request <a href="@%[2]s">#@%[3]d</a> in repository %[4]s.
341+
issue_assigned.issue = @%[1]s assigned you to the issue <a href="@%[2]s">#@%[3]d</a> in repository %[4]s.
342+
338343
release.new.subject = %s in %s released
339344
340345
repo.transfer.subject_to = %s would like to transfer "%s" to %s

templates/mail/issue/assigned.tmpl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@
99
</head>
1010

1111
<body>
12-
<p>@{{.Doer.Name}} assigned you to the {{if .IsPull}}pull request{{else}}issue{{end}} <a href="{{.Link}}">#{{.Issue.Index}}</a> in repository {{.Repo}}.</p>
12+
<p>
13+
{{if .IsPull}}
14+
{{.i18n.Tr "mail.issue_assigned.pull" .Doer.Name .Link .Issue.Index .Repo | Str2html}}
15+
{{else}}
16+
{{.i18n.Tr "mail.issue_assigned.issue" .Doer.Name .Link .Issue.Index .Repo | Str2html}}
17+
{{end}}
18+
</p>
1319
<div class="footer">
1420
<p>
1521
---
1622
<br>
17-
<a href="{{.Link}}">View it on {{AppName}}</a>.
23+
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
1824
</p>
1925
</div>
2026
</body>

templates/mail/issue/default.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<p>
8686
---
8787
<br>
88-
<a href="{{.Link}}">View it on {{AppName}}</a>.
88+
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
8989
</p>
9090
</div>
9191
</body>

templates/mail/notify/collaborator.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<p>
1515
---
1616
<br>
17-
<a href="{{.Link}}">View it on {{AppName}}</a>.
17+
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
1818
</p>
1919
</div>
2020
</body>

templates/mail/notify/repo_transfer.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p>
1212
---
1313
<br>
14-
<a href="{{.Link}}">View it on {{AppName}}</a>.
14+
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
1515
</p>
1616
</body>
1717
</html>

templates/mail/release.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<p>
5252
---
5353
<br>
54-
<a href="{{.Release.HTMLURL}}">View it on {{AppName}}</a>.
54+
{{.i18n.Tr "mail.view_it_on_footer" .Link AppName | Str2html}}
5555
</p>
5656
</div>
5757
</body>

0 commit comments

Comments
 (0)