1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

Fix fork page branch selection (#32711)

Fix #32709
This commit is contained in:
Lunny Xiao 2024-12-04 16:57:32 -08:00 committed by GitHub
parent 0c3c041c88
commit c5422fae9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,20 +53,18 @@
</div> </div>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.fork_branch"}}</label> <label>{{ctx.Locale.Tr "repo.fork_branch"}}</label>
<div class="ui selection dropdown"> <div class="ui selection dropdown ellipsis-items-nowrap">
<input type="hidden" id="fork_single_branch" name="fork_single_branch" value="" required> <input type="hidden" id="fork_single_branch" name="fork_single_branch" value="" required>
<span class="text truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}"> <div class="text" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span> <span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span>
</span> </div>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu"> <div class="menu">
<div class="item truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}"> <div class="item" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span> {{ctx.Locale.Tr "repo.all_branches"}}
</div> </div>
{{range .Branches}} {{range .Branches}}
<div class="item truncated-item-container" data-value="{{.}}" title="{{.}}"> <div class="item" data-value="{{.}}" title="{{.}}">{{.}}</div>
<span class="truncated-item-name">{{.}}</span>
</div>
{{end}} {{end}}
</div> </div>
</div> </div>