From fdcff3cc43771175f396992ea3b0e64d46eb6805 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 8 Mar 2024 18:25:37 +0100 Subject: [PATCH] found the template for frontend --- templates/repo/settings/options.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 191ac53967..5ce3cf3448 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -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}} +

+ Federation +

+
+ Repositories federated with the current one. +
+ {{end}} + {{if $showMirrorSettings}}

{{ctx.Locale.Tr "repo.settings.mirror_settings"}}