File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -355,20 +355,20 @@ issue.action.new = Created #%[2]d.
355
355
issue.in_tree_path = In %s:
356
356
357
357
release.new.subject = %s in %s released
358
- release.new.body = <b>@%[1]s</b> released <a href=" %[2]s">%[3]s</a> in <a href="%[4]s">%[5]s</a>
358
+ release.new.text = <b>@%[1]s</b> released %[2]s in %[3]s
359
359
release.title = Title: %s
360
360
release.note = Note:
361
361
release.downloads = Downloads:
362
- release.download.zip = <a href="%s" rel="nofollow"><strong> Source Code (ZIP)</strong></a>
363
- release.download.targz = <a href="%s"><strong> Source Code (TAR.GZ)</strong></a>
362
+ release.download.zip = Source Code (ZIP)
363
+ release.download.targz = Source Code (TAR.GZ)
364
364
365
365
repo.transfer.subject_to = %s would like to transfer "%s" to %s
366
366
repo.transfer.subject_to_you = %s would like to transfer "%s" to you
367
367
repo.transfer.to_you = you
368
- repo.transfer.body = To accept or reject it visit <a href="%[1]s">%[2]s</a> or just ignore it.
368
+ repo.transfer.body = To accept or reject it visit %s or just ignore it.
369
369
370
370
repo.collaborator.added.subject = %s added you to %s
371
- repo.collaborator.added.body = <p> You have been added as a collaborator of repository: <code>%[1]s</code></p>
371
+ repo.collaborator.added.text = You have been added as a collaborator of repository:
372
372
373
373
[modal]
374
374
yes = Yes
Original file line number Diff line number Diff line change 9
9
</head>
10
10
11
11
<body>
12
- {{.i18n.Tr "mail.repo.collaborator.added.body" .RepoName | Str2html}}
12
+ <p> {{.i18n.Tr "mail.repo.collaborator.added.text"}} <code>{{ .RepoName}}</code></p>
13
13
<div class="footer">
14
14
<p>
15
15
---
Original file line number Diff line number Diff line change 5
5
<title>{{.Subject}}</title>
6
6
</head>
7
7
8
+ {{$url := printf "<a href='%[1]s'>%[2]s</a>" .Link .Repo}}
8
9
<body>
9
10
<p>{{.Subject}}.
10
- {{.i18n.Tr "mail.repo.transfer.body" .Link .Repo | Str2html}}
11
+ {{.i18n.Tr "mail.repo.transfer.body" $url | Str2html}}
11
12
<p>
12
13
---
13
14
<br>
Original file line number Diff line number Diff line change 11
11
12
12
</head>
13
13
14
+ {{$release_url := printf "<a href='%s'>%s</a>" .Release.HTMLURL .Release.TagName}}
15
+ {{$repo_url := printf "<a href='%s'>%s</a>" .Release.Repo.HTMLURL .Release.Repo.FullName}}
14
16
<body>
15
17
<p>
16
- {{.i18n.Tr "mail.release.new.body " .Release.Publisher.Name .Release.HTMLURL .Release.TagName .Release.Repo.HTMLURL .Release.Repo.FullName | Str2html}}
18
+ {{.i18n.Tr "mail.release.new.text " .Release.Publisher.Name $release_url $repo_url | Str2html}}
17
19
</p>
18
20
<h4>{{.i18n.Tr "mail.release.title" .Release.Title}}</h4>
19
21
<p>
30
32
{{.i18n.Tr "mail.release.downloads"}}
31
33
<ul>
32
34
{{$tagname := .Release.TagName | EscapePound}}
35
+ {{$archive_url := printf "%s%s/%s/archive" AppUrl .Release.Repo.OwnerName .Release.Repo.Name}}
33
36
<li>
34
- {{$zip_url := printf "%s%s/%s/archive/%s.zip" AppUrl .Release.Repo.OwnerName .Release.Repo.Name $tagname}}
35
- {{.i18n.Tr "mail.release.download.zip" $zip_url | Str2html}}
37
+ <a href="{{$archive_url}}/{{$tagname}}.zip" rel="nofollow"><strong>{{.i18n.Tr "mail.release.download.zip"}}</strong></a>
36
38
</li>
37
39
<li>
38
- {{$targz_url := printf "%s%s/%s/archive/%s.tar.gz" AppUrl .Release.Repo.OwnerName .Release.Repo.Name $tagname}}
39
- {{.i18n.Tr "mail.release.download.targz" $targz_url | Str2html}}
40
+ <a href="{{$archive_url}}/{{$tagname}}.tar.gz" rel="nofollow"><strong>{{.i18n.Tr "mail.release.download.targz"}}</strong></a>
40
41
</li>
41
42
{{if .Release.Attachments}}
42
43
{{range .Release.Attachments}}
You can’t perform that action at this time.
0 commit comments