mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 03:05:55 +01:00
9a65d011f6
Related to #26239 This PR makes some fixes: - do not show the prompt for mirror repos and repos with pull request units disabled - use `commit_time` instead of `updated_unix`, as `commit_time` is the real time when the branch was pushed
12 lines
515 B
Handlebars
12 lines
515 B
Handlebars
{{range .RecentlyPushedNewBranches}}
|
|
<div class="ui positive message gt-df gt-ac">
|
|
<div class="gt-f1">
|
|
{{$timeSince := TimeSince .CommitTime.AsTime $.locale}}
|
|
{{$.locale.Tr "repo.pulls.recently_pushed_new_branches" (PathEscapeSegments .Name) $timeSince | Safe}}
|
|
</div>
|
|
<a aria-role="button" class="ui compact positive button gt-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo (PathEscapeSegments .Name)}}">
|
|
{{$.locale.Tr "repo.pulls.compare_changes"}}
|
|
</a>
|
|
</div>
|
|
{{end}}
|