|
|
@ -91,7 +91,7 @@ |
|
|
|
{{if .Repository.IsMirror}} |
|
|
|
{{if .Repository.IsMirror}} |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td>{{(MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName).Address}}</td> |
|
|
|
<td>{{(MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName false).Address}}</td> |
|
|
|
<td>{{$.i18n.Tr "repo.settings.mirror_settings.direction.pull"}}</td> |
|
|
|
<td>{{$.i18n.Tr "repo.settings.mirror_settings.direction.pull"}}</td> |
|
|
|
<td>{{.Mirror.UpdatedUnix.AsTime}}</td> |
|
|
|
<td>{{.Mirror.UpdatedUnix.AsTime}}</td> |
|
|
|
<td class="right aligned"> |
|
|
|
<td class="right aligned"> |
|
|
@ -119,7 +119,7 @@ |
|
|
|
<label for="interval">{{.i18n.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> |
|
|
|
<label for="interval">{{.i18n.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> |
|
|
|
<input id="interval" name="interval" value="{{.MirrorInterval}}"> |
|
|
|
<input id="interval" name="interval" value="{{.MirrorInterval}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{$address := MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName}} |
|
|
|
{{$address := MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName false}} |
|
|
|
<div class="field {{if .Err_MirrorAddress}}error{{end}}"> |
|
|
|
<div class="field {{if .Err_MirrorAddress}}error{{end}}"> |
|
|
|
<label for="mirror_address">{{.i18n.Tr "repo.mirror_address"}}</label> |
|
|
|
<label for="mirror_address">{{.i18n.Tr "repo.mirror_address"}}</label> |
|
|
|
<input id="mirror_address" name="mirror_address" value="{{$address.Address}}" required> |
|
|
|
<input id="mirror_address" name="mirror_address" value="{{$address.Address}}" required> |
|
|
@ -168,7 +168,7 @@ |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{{range .PushMirrors}} |
|
|
|
{{range .PushMirrors}} |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
{{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName}} |
|
|
|
{{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName true}} |
|
|
|
<td>{{$address.Address}}</td> |
|
|
|
<td>{{$address.Address}}</td> |
|
|
|
<td>{{$.i18n.Tr "repo.settings.mirror_settings.direction.push"}}</td> |
|
|
|
<td>{{$.i18n.Tr "repo.settings.mirror_settings.direction.push"}}</td> |
|
|
|
<td>{{if .LastUpdateUnix}}{{.LastUpdateUnix.AsTime}}{{else}}{{$.i18n.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label tooltip" data-content="{{.LastError}}">{{$.i18n.Tr "error"}}</div>{{end}}</td> |
|
|
|
<td>{{if .LastUpdateUnix}}{{.LastUpdateUnix.AsTime}}{{else}}{{$.i18n.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label tooltip" data-content="{{.LastError}}">{{$.i18n.Tr "error"}}</div>{{end}}</td> |
|
|
|