summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-04-24 16:29:16 +0200
committerGitHub <noreply@github.com>2023-04-24 10:29:16 -0400
commit61d0af0a2192295816f23e93f7fa8df5ba4a71ba (patch)
tree41abe9b230938a3e37521cd4e2fc08c66b666ee0 /templates
parent75c62054a633fc9ae25887f72da1ec2d08a31e90 (diff)
downloadgitea-61d0af0a2192295816f23e93f7fa8df5ba4a71ba.tar.gz
gitea-61d0af0a2192295816f23e93f7fa8df5ba4a71ba.zip
Wrap too long push mirror addresses (#21120)
I noticed that it is possible to break the push mirror list by entering a too long URL. This should fix it. | Before | After | |--------------|-----------| |![Before](https://user-images.githubusercontent.com/15185051/189294585-333965d1-0f0f-48e2-96d5-e04b84b55ae3.png)|![After](https://user-images.githubusercontent.com/15185051/189294619-301e271c-b89b-4bc0-9c11-9536bd0302be.png)|
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/options.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index dba554a3d3..a974401e80 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -165,7 +165,7 @@
{{range .PushMirrors}}
<tr>
{{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName true}}
- <td>{{$address.Address}}</td>
+ <td class="gt-word-break">{{$address.Address}}</td>
<td>{{$.locale.Tr "repo.settings.mirror_settings.direction.push"}}</td>
<td>{{if .LastUpdateUnix}}{{DateTime "full" .LastUpdateUnix.FormatLong .LastUpdateUnix.AsTime}}{{else}}{{$.locale.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label" data-tooltip-content="{{.LastError}}">{{$.locale.Tr "error"}}</div>{{end}}</td>
<td class="right aligned">