mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 22:35:39 +03:00
found the template for frontend
This commit is contained in:
parent
93d7de147b
commit
fdcff3cc43
1 changed files with 10 additions and 0 deletions
|
@ -67,6 +67,7 @@
|
|||
{{$newMirrorsPartiallyEnabled := or (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}}
|
||||
{{/* .Repository.IsMirror is not always reliable if the repository is not actively acting as a mirror because of errors. */}}
|
||||
{{$showMirrorSettings := and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (or $newMirrorsPartiallyEnabled .Repository.IsMirror .PullMirror .PushMirrors)}}
|
||||
{{$showFederationSettings := true}}
|
||||
{{$newMirrorsEntirelyEnabled := and (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}}
|
||||
{{$onlyNewPushMirrorsEnabled := and (not .DisableNewPushMirrors) .DisableNewPullMirrors}}
|
||||
{{$onlyNewPullMirrorsEnabled := and .DisableNewPushMirrors (not .DisableNewPullMirrors)}}
|
||||
|
@ -74,6 +75,15 @@
|
|||
{{$modifyBrokenPullMirror := and .Repository.IsMirror (not .PullMirror)}}
|
||||
{{$isWorkingPullMirror := .PullMirror}}
|
||||
|
||||
{{if $showFederationSettings}}
|
||||
<h4 class="ui top attached header">
|
||||
Federation
|
||||
</h4>
|
||||
<div class="ui attached segment">
|
||||
Repositories federated with the current one.
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if $showMirrorSettings}}
|
||||
<h4 class="ui top attached header">
|
||||
{{ctx.Locale.Tr "repo.settings.mirror_settings"}}
|
||||
|
|
Loading…
Reference in a new issue