Skip to content

Commit 3ff5727

Browse files
committed
UPDATE
1 parent 1ebc80b commit 3ff5727

13 files changed

+29
-40
lines changed

templates/mail/footer_gitea.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
5+
</body>
6+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<div style="font-size:small; color:#666;">
5+
<p>
6+
---
7+
<br>
8+
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>{{if .CanReply}}&nbsp;{{.locale.Tr "mail.reply"}}{{end}}.
9+
</p>
10+
</div>
11+
</body>
12+
</html>

templates/mail/org/team_invite.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
1111
<p>{{.locale.Tr "mail.team_invite.text_3" .Invite.Email}}</p>
1212

13-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
13+
{{template "footer_gitea"}}
1414
</body>
1515
</html>

templates/mail/repo/collaborator.tmpl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77

88
<body>
99
<p>{{.locale.Tr "mail.repo.collaborator.added.text"}} <code>{{.RepoName}}</code></p>
10-
<div style="font-size:small; color:#666;">
11-
<p>
12-
---
13-
<br>
14-
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>.
15-
</p>
16-
</div>
10+
{{template "footer_view_on_gitea" .}}
1711
</body>
1812
</html>

templates/mail/repo/issue/assigned.tmpl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
{{.locale.Tr "mail.issue_assigned.issue" .Doer.Name $link $repo_url}}
1616
{{end}}
1717
</p>
18-
<div style="font-size:small; color:#666;">
19-
<p>
20-
---
21-
<br>
22-
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>.
23-
</p>
24-
</div>
18+
{{template "footer_view_on_gitea" .}}
2519
</body>
2620
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CanReply: true

templates/mail/repo/issue/default.tmpl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@
7575
</ul>
7676
{{end}}
7777
</p>
78-
<div style="font-size:small; color:#666;">
79-
<p>
80-
---
81-
<br>
82-
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>{{if .CanReply}} {{.locale.Tr "mail.reply"}}{{end}}.
83-
</p>
84-
</div>
78+
{{template "footer_view_on_gitea" .}}
8579
</body>
8680
</html>

templates/mail/repo/release.tmpl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
{{end}}
5050
</ul>
5151
</p>
52-
<div style="font-size:small; color:#666;">
53-
<p>
54-
---
55-
<br>
56-
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>.
57-
</p>
58-
</div>
52+
{{template "footer_view_on_gitea" .}}
5953
</body>
6054
</html>

templates/mail/repo/transfer.tmpl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
<p>{{.Subject}}.
1111
{{.locale.Tr "mail.repo.transfer.body" $url}}
1212
</p>
13-
<div style="font-size:small; color:#666;">
14-
<p>
15-
---
16-
<br>
17-
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>.
18-
</p>
19-
</div>
13+
{{template "footer_view_on_gitea" .}}
2014
</body>
2115
</html>

templates/mail/user/auth/activate.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<p>{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
1313
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
1414

15-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
15+
{{template "footer_gitea"}}
1616
</body>
1717
</html>

0 commit comments

Comments
 (0)