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 | |--------------|-----------| |||
This commit is contained in:
		
							parent
							
								
									75c62054a6
								
							
						
					
					
						commit
						61d0af0a21
					
				|  | @ -165,7 +165,7 @@ | ||||||
| 						{{range .PushMirrors}} | 						{{range .PushMirrors}} | ||||||
| 						<tr> | 						<tr> | ||||||
| 							{{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName true}} | 							{{$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>{{$.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>{{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"> | 							<td class="right aligned"> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue