aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-02-01 09:04:23 +0900
committerGitHub <noreply@github.com>2024-02-01 00:04:23 +0000
commit64faecefe10613840709a68c1b8b708115d69d6e (patch)
tree0d6eaaaa4aece77639b15fa7042dd8fa295c329d /templates/repo
parent4989ad0a9f097fdd8d642aa10f4c203f861debea (diff)
downloadgitea-64faecefe10613840709a68c1b8b708115d69d6e.tar.gz
gitea-64faecefe10613840709a68c1b8b708115d69d6e.zip
Fix UI Spacing Errors in mirror settings (#28990)
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/settings/options.tmpl17
1 files changed, 14 insertions, 3 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 07b2f58d53..dfb909e743 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -105,8 +105,9 @@
{{else}}
{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.no_new_mirrors"}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.can_still_use"}}<br>
{{end}}
+
+ {{if .Repository.IsMirror}}
<table class="ui table">
- {{if $existingPushMirror}}
<thead>
<tr>
<th style="width:40%">{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</th>
@@ -200,8 +201,18 @@
</td>
</tr>
</tbody>
- <thead><tr><th colspan="4"></th></tr></thead>
- {{end}}{{/* end if: IsMirror */}}
+ </table>
+ {{end}}{{/* end if: IsMirror */}}
+
+ <table class="ui table">
+ <thead>
+ <tr>
+ <th style="width:40%">{{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}}</th>
+ <th>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}</th>
+ <th>{{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}</th>
+ <th></th>
+ </tr>
+ </thead>
<tbody>
{{range .PushMirrors}}
<tr>