mirror of https://github.com/go-gitea/gitea.git
Display latest sync time for pull mirrors on the repo page (#28712)
Fixes #25168 --------- Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
parent
3793ec4d14
commit
2d343f8987
|
@ -28,6 +28,13 @@
|
||||||
<div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div>
|
<div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
{{if not (or .IsBeingCreated .IsBroken)}}
|
{{if not (or .IsBeingCreated .IsBroken)}}
|
||||||
<div class="repo-buttons">
|
<div class="repo-buttons">
|
||||||
|
|
Loading…
Reference in New Issue