Skip to content

Commit

Permalink
Fix fork page branch selection (go-gitea#32711)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Dec 5, 2024
1 parent 0c3c041 commit c5422fa
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions templates/repo/pulls/fork.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,18 @@
</div>
<div class="inline field">
<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>
<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>
</div>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu">
<div class="item truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span>
<div class="item" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
{{ctx.Locale.Tr "repo.all_branches"}}
</div>
{{range .Branches}}
<div class="item truncated-item-container" data-value="{{.}}" title="{{.}}">
<span class="truncated-item-name">{{.}}</span>
</div>
<div class="item" data-value="{{.}}" title="{{.}}">{{.}}</div>
{{end}}
</div>
</div>
Expand Down

0 comments on commit c5422fa

Please sign in to comment.