Skip to content

Commit 1254a82

Browse files
GiteaBotJakobDev
andauthored
Wrap too long push mirror addresses (#21120) (#24334)
Backport #21120 by @JakobDev 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)| Co-authored-by: JakobDev <[email protected]>
1 parent ef3e3af commit 1254a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: templates/repo/settings/options.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
{{range .PushMirrors}}
170170
<tr>
171171
{{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName true}}
172-
<td>{{$address.Address}}</td>
172+
<td class="gt-word-break">{{$address.Address}}</td>
173173
<td>{{$.locale.Tr "repo.settings.mirror_settings.direction.push"}}</td>
174174
<td>{{if .LastUpdateUnix}}<time data-format="date-time" datetime="{{.LastUpdateUnix.FormatLong}}">{{.LastUpdateUnix.AsTime}}</time>{{else}}{{$.locale.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label tooltip" data-content="{{.LastError}}">{{$.locale.Tr "error"}}</div>{{end}}</td>
175175
<td class="right aligned">

0 commit comments

Comments
 (0)