|
|
|
@ -14,16 +14,18 @@
|
|
|
|
|
<div class="cl mb10"></div>
|
|
|
|
|
<div class="merge-option-name fl" style="padding:5px 0">目标分支</div>
|
|
|
|
|
<% if @forked_project.nil? %>
|
|
|
|
|
<%= select_tag :branch, options_for_select(@source_project_name), :name => "target_project", :value => "target_project",
|
|
|
|
|
:class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;", :id => "targetProject" %>\
|
|
|
|
|
<%= select_tag :branch, options_for_select(@source_rev), :name => "target_branch", :value => "target_branch",
|
|
|
|
|
:class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;", :id => "targetBranch" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<select onchange="choice_branch(this.value, document.getElementById('branch'), <%= @source_rev %>, <%= @forked_rev %>);" name="source_branch" value="source_branch" class="ml30 fontGrey3 fb fl" style = "padding:5px 0 5px 5px;">
|
|
|
|
|
<select onchange="choice_branch(this.value, document.getElementById('pull_request_branch'), <%= @source_rev %>, <%= @forked_rev %>);" name="source_branch" value="source_branch" class="ml30 fontGrey3 fb fl" style = "padding:5px 0 5px 5px;">
|
|
|
|
|
<option value="source_project_name"><%= @source_project_name %></option>
|
|
|
|
|
<option value="forked_project_name"><%= @forked_project_name %></option>
|
|
|
|
|
</select>
|
|
|
|
|
<select name="branch" id="branch" class = "ml30 fontGrey3 fb fl" style = "padding:5px 0 5px 5px;"></select>
|
|
|
|
|
<select name="branch" id="pull_request_branch" class = "ml30 fontGrey3 fb fl" style = "width:140px; padding:5px 0 5px 5px;">
|
|
|
|
|
<% @source_rev.each do |rev| %>
|
|
|
|
|
<option value="source_project_name"><%= rev %></option>
|
|
|
|
|
<% end %>
|
|
|
|
|
</select>
|
|
|
|
|
<%#= select_tag :branch, options_for_select([@source_project_name, @forked_project_name]), :name => "target_project", :value => "target_project",
|
|
|
|
|
:class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;", :id => "targetProject" %>
|
|
|
|
|
<%#= select_tag :branch, options_for_select(@source_rev), :name => "target_branch", :value => "target_branch",
|
|
|
|
|