From 2d343f8987025015f5b61e328cc9e45082e6d3f2 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Mon, 15 Jan 2024 17:37:14 +0300 Subject: Display latest sync time for pull mirrors on the repo page (#28712) Fixes #25168 --------- Co-authored-by: delvh --- templates/repo/header.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 9630cd3a6f..c362059ef3 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -28,6 +28,13 @@
{{svg "octicon-repo-template" 18}}
{{end}} + {{if $.PullMirror}} +
+ {{ctx.Locale.Tr "repo.mirror_from"}} + {{$.PullMirror.RemoteAddress}} + {{if $.PullMirror.UpdatedUnix}}{{ctx.Locale.Tr "repo.mirror_sync"}} {{TimeSinceUnix $.PullMirror.UpdatedUnix ctx.Locale}}{{end}} +
+ {{end}} {{if not (or .IsBeingCreated .IsBroken)}}
-- cgit v1.2.3