mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
[PORT] Refactor DateUtils and merge TimeSince (gitea#32409)
Follow #32383 and #32402 --- Conflict resolution: Magic, painful. (cherry picked from commit b068dbd40ee3b4dc7d18cdcf168f0c24cea234c0)
This commit is contained in:
parent
8f6dfe29da
commit
7e1aa8a5cd
74 changed files with 241 additions and 228 deletions
|
@ -1,7 +1,7 @@
|
|||
{{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}}
|
||||
{{$timeSince := DateUtils.TimeSince .CommitTime}}
|
||||
{{$repo := .GetRepo $.Context}}
|
||||
{{$name := .Name}}
|
||||
{{if ne $repo.ID $.Repository.ID}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue