diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index 57d2269807..94de4d78eb 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -51,6 +51,26 @@ </div> <span class="help">{{ctx.Locale.Tr "repo.fork_visibility_helper"}}</span> </div> + <div class="inline field"> + <label>{{ctx.Locale.Tr "repo.fork_branch"}}</label> + <div class="ui selection dropdown"> + <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"}}"> + <span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span> + </span> + {{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> + {{range .Branches}} + <div class="item truncated-item-container" data-value="{{.}}" title="{{.}}"> + <span class="truncated-item-name">{{.}}</span> + </div> + {{end}} + </div> + </div> + </div> <div class="inline field {{if .Err_Description}}error{{end}}"> <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> <textarea id="description" name="description">{{.description}}</textarea> |