forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d65eb22
commit cbe9f56
Showing
5 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%h3.page-title | ||
%i.icon-code-fork | ||
New branch | ||
= form_tag project_branches_path, method: :post do | ||
.control-group | ||
= label_tag :branch_name, 'Name for new branch', class: 'control-label' | ||
.controls | ||
= text_field_tag :branch_name, nil, placeholder: 'feature/dashboard' | ||
.control-group | ||
= label_tag :ref, 'Create from', class: 'control-label' | ||
.controls | ||
= text_field_tag :ref, nil, placeholder: 'master' | ||
.light branch name or commit SHA | ||
.form-actions | ||
= submit_tag 'Create branch', class: 'btn btn-create' | ||
= link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel' | ||
|
||
:javascript | ||
var availableTags = #{@project.repository.ref_names.to_json}; | ||
|
||
$("#ref").autocomplete({ | ||
source: availableTags, | ||
minLength: 1 | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters