mirror of
https://github.com/go-gitea/gitea
synced 2024-11-08 19:24:25 +00:00
331c32f9b6
Backport #31179 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30063 <img width="1301" alt="Screenshot 2024-05-30 at 14 43 24" src="https://github.com/go-gitea/gitea/assets/115237/00443af0-088d-49a5-be9e-8c9adcc2c01d"> Co-authored-by: silverwind <me@silverwind.io>
13 lines
552 B
Handlebars
13 lines
552 B
Handlebars
{{range .RecentlyPushedNewBranches}}
|
|
<div class="ui positive message tw-flex tw-items-center tw-gap-2">
|
|
<div class="tw-flex-1 tw-break-anywhere">
|
|
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
|
|
{{$branchLink := HTMLFormat `<a href="%s">%s</a>` .BranchLink .BranchDisplayName}}
|
|
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}
|
|
</div>
|
|
<a role="button" class="ui compact green button tw-m-0" href="{{.BranchCompareURL}}">
|
|
{{ctx.Locale.Tr "repo.pulls.compare_changes"}}
|
|
</a>
|
|
</div>
|
|
{{end}}
|