diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-06 19:25:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 11:25:00 +0000 |
commit | c381343a60b9c9eedb9dbc0931d1b87cb3c1f366 (patch) | |
tree | a80b73c7d389509356e88d46285e4e41cbe54aa0 /templates/repo | |
parent | c6cc392b55b71ae1787e86e75b7121c3769adcbe (diff) | |
download | gitea-c381343a60b9c9eedb9dbc0931d1b87cb3c1f366.tar.gz gitea-c381343a60b9c9eedb9dbc0931d1b87cb3c1f366.zip |
Add a link for the recently pushed branch notification (#29627)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/code/recently_pushed_new_branches.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/code/recently_pushed_new_branches.tmpl b/templates/repo/code/recently_pushed_new_branches.tmpl index fedba06fad..5e603eae81 100644 --- a/templates/repo/code/recently_pushed_new_branches.tmpl +++ b/templates/repo/code/recently_pushed_new_branches.tmpl @@ -2,7 +2,8 @@ <div class="ui positive message gt-df gt-ac"> <div class="gt-f1"> {{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}} - {{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" .Name $timeSince}} + {{$branchLink := HTMLFormat `<a href="%s/src/branch/%s">%s</a>` $.RepoLink (PathEscapeSegments .Name) .Name}} + {{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}} </div> <a role="button" class="ui compact positive button gt-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo .Name}}"> {{ctx.Locale.Tr "repo.pulls.compare_changes"}} |