mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
Some fixes of the prompt of new branches (#26257)
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
This commit is contained in:
parent
b9baed2c74
commit
9a65d011f6
3 changed files with 15 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
{{range .RecentlyPushedNewBranches}}
|
||||
<div class="ui positive message gt-df gt-ac">
|
||||
<div class="gt-f1">
|
||||
{{$timeSince := TimeSince .UpdatedUnix.AsTime $.locale}}
|
||||
{{$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)}}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue