We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fea93b commit 6ecd2e7Copy full SHA for 6ecd2e7
templates/repo/header.tmpl
@@ -39,7 +39,7 @@
39
{{end}}
40
</div>
41
42
- {{if $.IsPullMirror}}
+ {{if and $.IsPullMirror $.Mirror}}
43
{{$address := MirrorRemoteAddress $.Context . $.Mirror.GetRemoteName false}}
44
<div class="fork-flag">{{$.locale.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$address.Address}}">{{$address.Address}}</a></div>
45
templates/repo/settings/options.tmpl
@@ -88,7 +88,7 @@
88
</tr>
89
</thead>
90
91
- {{if .Repository.IsMirror}}
+ {{if and .Repository.IsMirror .Mirror}}
92
<tbody>
93
<tr>
94
<td>{{(MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName false).Address}}</td>
0 commit comments