Skip to content

Commit c18fad2

Browse files
committed
and fix the issues/pulls links
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 922fd8b commit c18fad2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

templates/user/dashboard/feeds.tmpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,32 @@
2424
{{end}}
2525
{{else if eq .GetOpType 6}}
2626
{{ $index := index .GetIssueInfos 0}}
27-
{{$.i18n.Tr "action.create_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
27+
{{$.i18n.Tr "action.create_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
2828
{{else if eq .GetOpType 7}}
2929
{{ $index := index .GetIssueInfos 0}}
30-
{{$.i18n.Tr "action.create_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
30+
{{$.i18n.Tr "action.create_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
3131
{{else if eq .GetOpType 8}}
3232
{{$.i18n.Tr "action.transfer_repo" .GetContent (.GetRepoLink|Escape) (.ShortRepoPath|Escape) | Str2html}}
3333
{{else if eq .GetOpType 9}}
3434
{{$.i18n.Tr "action.push_tag" (.GetRepoLink|Escape) (.GetRefLink|Escape) (.ShortRepoPath|Escape) .GetTag | Str2html}}
3535
{{else if eq .GetOpType 10}}
3636
{{ $index := index .GetIssueInfos 0}}
37-
{{$.i18n.Tr "action.comment_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
37+
{{$.i18n.Tr "action.comment_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
3838
{{else if eq .GetOpType 11}}
3939
{{ $index := index .GetIssueInfos 0}}
40-
{{$.i18n.Tr "action.merge_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
40+
{{$.i18n.Tr "action.merge_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
4141
{{else if eq .GetOpType 12}}
4242
{{ $index := index .GetIssueInfos 0}}
43-
{{$.i18n.Tr "action.close_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
43+
{{$.i18n.Tr "action.close_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
4444
{{else if eq .GetOpType 13}}
4545
{{ $index := index .GetIssueInfos 0}}
46-
{{$.i18n.Tr "action.reopen_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
46+
{{$.i18n.Tr "action.reopen_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
4747
{{else if eq .GetOpType 14}}
4848
{{ $index := index .GetIssueInfos 0}}
49-
{{$.i18n.Tr "action.close_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
49+
{{$.i18n.Tr "action.close_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
5050
{{else if eq .GetOpType 15}}
5151
{{ $index := index .GetIssueInfos 0}}
52-
{{$.i18n.Tr "action.reopen_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
52+
{{$.i18n.Tr "action.reopen_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
5353
{{else if eq .GetOpType 16}}
5454
{{ $index := index .GetIssueInfos 0}}
5555
{{$.i18n.Tr "action.delete_tag" (.GetRepoLink|Escape) (.GetTag|Escape) (.ShortRepoPath|Escape) | Str2html}}

0 commit comments

Comments
 (0)