2023-07-08 08:49:00 +05:30
|
|
|
{{range .RecentlyPushedNewBranches}}
|
2024-03-22 19:15:10 +05:30
|
|
|
<div class="ui positive message tw-flex tw-content-center">
|
|
|
|
<div class="tw-flex-1">
|
2023-09-25 18:12:40 +05:30
|
|
|
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
|
2024-01-21 19:48:24 +05:30
|
|
|
{{$repo := .GetRepo $.Context}}
|
|
|
|
{{$name := .Name}}
|
|
|
|
{{if ne $repo.ID $.Repository.ID}}
|
|
|
|
{{$name = (print $repo.FullName ":" .Name)}}
|
|
|
|
{{end}}
|
|
|
|
{{$branchLink := (print ($repo.Link) "/src/branch/" (PathEscapeSegments .Name))}}
|
2024-02-25 19:32:20 +05:30
|
|
|
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $name $timeSince $branchLink}}
|
2023-07-08 08:49:00 +05:30
|
|
|
</div>
|
2024-01-21 19:48:24 +05:30
|
|
|
<a role="button" class="ui compact positive button gt-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo $name}}">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.pulls.compare_changes"}}
|
2023-07-08 08:49:00 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|