Skip to content

Commit

Permalink
Display latest sync time for pull mirrors on the repo page (go-gitea#…
Browse files Browse the repository at this point in the history
…28712)

Fixes go-gitea#25168

---------

Co-authored-by: delvh <[email protected]>
  • Loading branch information
2 people authored and henrygoodman committed Jan 31, 2024
1 parent eaf5951 commit f5269d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/repo/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div>
{{end}}
</div>
{{if $.PullMirror}}
<div class="fork-flag">
{{ctx.Locale.Tr "repo.mirror_from"}}
<a target="_blank" rel="noopener noreferrer" href="{{$.PullMirror.RemoteAddress}}">{{$.PullMirror.RemoteAddress}}</a>
{{if $.PullMirror.UpdatedUnix}}{{ctx.Locale.Tr "repo.mirror_sync"}} {{TimeSinceUnix $.PullMirror.UpdatedUnix ctx.Locale}}{{end}}
</div>
{{end}}
</div>
{{if not (or .IsBeingCreated .IsBroken)}}
<div class="repo-buttons">
Expand Down

0 comments on commit f5269d5

Please sign in to comment.