Skip to content

Commit c381343

Browse files
authored
Add a link for the recently pushed branch notification (#29627)
1 parent c6cc392 commit c381343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/repo/code/recently_pushed_new_branches.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<div class="ui positive message gt-df gt-ac">
33
<div class="gt-f1">
44
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
5-
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" .Name $timeSince}}
5+
{{$branchLink := HTMLFormat `<a href="%s/src/branch/%s">%s</a>` $.RepoLink (PathEscapeSegments .Name) .Name}}
6+
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}
67
</div>
78
<a role="button" class="ui compact positive button gt-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo .Name}}">
89
{{ctx.Locale.Tr "repo.pulls.compare_changes"}}

0 commit comments

Comments
 (0)