Skip to content

Commit 4231ccc

Browse files
committed
and approve/reject links in feeds too
Signed-off-by: Andrew Thornton <[email protected]>
1 parent c18fad2 commit 4231ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/user/dashboard/feeds.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
{{$.i18n.Tr "action.mirror_sync_delete" (.GetRepoLink|Escape) (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}}
6565
{{else if eq .GetOpType 21}}
6666
{{ $index := index .GetIssueInfos 0}}
67-
{{$.i18n.Tr "action.approve_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
67+
{{$.i18n.Tr "action.approve_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
6868
{{else if eq .GetOpType 22}}
6969
{{ $index := index .GetIssueInfos 0}}
70-
{{$.i18n.Tr "action.reject_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
70+
{{$.i18n.Tr "action.reject_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}}
7171
{{else if eq .GetOpType 23}}
7272
{{ $index := index .GetIssueInfos 0}}
7373
{{$.i18n.Tr "action.comment_pull" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}

0 commit comments

Comments
 (0)