From 9f89724324f00abbc454b068d6b5feb63daac02b Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 4 Jun 2024 18:15:25 +0800 Subject: [PATCH] Fix overflow on push notification (#31179) (#31238) Backport #31179 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30063 Screenshot 2024-05-30 at 14 43 24 Co-authored-by: silverwind (cherry picked from commit 331c32f9b680f0e25efe5d48ec57dfc1db194adf) --- templates/repo/code/recently_pushed_new_branches.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/code/recently_pushed_new_branches.tmpl b/templates/repo/code/recently_pushed_new_branches.tmpl index f6f595a00f..d996acc5b2 100644 --- a/templates/repo/code/recently_pushed_new_branches.tmpl +++ b/templates/repo/code/recently_pushed_new_branches.tmpl @@ -1,6 +1,6 @@ {{range .RecentlyPushedNewBranches}} -
-
+
+
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}} {{$repo := .GetRepo $.Context}} {{$name := .Name}}