Skip to content

Commit 61d0af0

Browse files
authored
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)|
1 parent 75c6205 commit 61d0af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/settings/options.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
{{range .PushMirrors}}
166166
<tr>
167167
{{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName true}}
168-
<td>{{$address.Address}}</td>
168+
<td class="gt-word-break">{{$address.Address}}</td>
169169
<td>{{$.locale.Tr "repo.settings.mirror_settings.direction.push"}}</td>
170170
<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>
171171
<td class="right aligned">

0 commit comments

Comments
 (0)