From ffcb3287079ab77d336cbb424991dcd9f9209bcf Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Wed, 31 Jan 2024 04:57:57 +0000
Subject: [PATCH] fix
---
options/locale/locale_en-US.ini | 1 +
templates/repo/settings/options.tmpl | 17 ++++++++++++++---
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 9a06bb0952d80..524b95a749199 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -2011,6 +2011,7 @@ settings.mirror_settings.docs.doc_link_title = How do I mirror repositories?
settings.mirror_settings.docs.doc_link_pull_section = the "Pulling from a remote repository" section of the documentation.
settings.mirror_settings.docs.pulling_remote_title = Pulling from a remote repository
settings.mirror_settings.mirrored_repository = Mirrored repository
+settings.mirror_settings.pushed_repository = Pushed repository
settings.mirror_settings.direction = Direction
settings.mirror_settings.direction.pull = Pull
settings.mirror_settings.direction.push = Push
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 8456bb409b358..d14e791a5c647 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -100,8 +100,9 @@
{{else}}
{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.no_new_mirrors"}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.can_still_use"}}
{{end}}
+
+ {{if .Repository.IsMirror}}
- {{if $existingPushMirror}}
{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}} |
@@ -195,8 +196,18 @@
- |
- {{end}}{{/* end if: IsMirror */}}
+
+ {{end}}{{/* end if: IsMirror */}}
+
+
+
+
+ {{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}} |
+ {{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}} |
+ {{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}} |
+ |
+
+
{{range .PushMirrors}}