Fix Pull Mirror out-of-sync bugs (#24732) (#24733)

Backport #24732 

Bug-fix only
pull/24746/head
wxiaoguang 2 years ago committed by GitHub
parent 2fea93b2d3
commit 6ecd2e782f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/repo/header.tmpl
  2. 2
      templates/repo/settings/options.tmpl

@ -39,7 +39,7 @@
{{end}}
</div>
</div>
{{if $.IsPullMirror}}
{{if and $.IsPullMirror $.Mirror}}
{{$address := MirrorRemoteAddress $.Context . $.Mirror.GetRemoteName false}}
<div class="fork-flag">{{$.locale.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$address.Address}}">{{$address.Address}}</a></div>
{{end}}

@ -88,7 +88,7 @@
</tr>
</thead>
{{end}}
{{if .Repository.IsMirror}}
{{if and .Repository.IsMirror .Mirror}}
<tbody>
<tr>
<td>{{(MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName false).Address}}</td>

Loading…
Cancel
Save