|
|
|
@ -9,15 +9,26 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="new-merge-wrap borderBottomNone">
|
|
|
|
|
<div class="merge-option-name fl" style="padding:5px 0">源分支</div>
|
|
|
|
|
<%= select_tag :branch, options_for_select(@rev), :name => "source_branch", :value => "source_branch", :class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;" %>
|
|
|
|
|
<%= select_tag :branch, options_for_select(@source_rev), :name => "source_branch", :value => "source_branch", :class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;" %>
|
|
|
|
|
<!--<select name="source_branch" value="source_branch" class="ml30 fontGrey3 fb fl"><option>master</option><option>develop</option><option>rep_quality</option></select>-->
|
|
|
|
|
<div class="cl mb10"></div>
|
|
|
|
|
<div class="merge-option-name fl" style="padding:5px 0">目标分支</div>
|
|
|
|
|
<% unless @target_project.blank? %>
|
|
|
|
|
<%= select_tag :branch, options_for_select(@target_project), :name => "target_project", :value => "target_project", :class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;", :id => "targetProject" %>
|
|
|
|
|
<% 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;">
|
|
|
|
|
<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_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",
|
|
|
|
|
:class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;", :id => "targetBranch" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= select_tag :branch, options_for_select(@rev), :name => "target_branch", :value => "target_branch", :class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;", :id => "targetBranch" %>
|
|
|
|
|
|
|
|
|
|
<!--<select name="target_branch" value="source_branch" class="ml30 fontGrey3 fb fl"><option>master</option><option>hjq_course</option><option>hjq_beidou</option><option>develop</option><option>dev_huang</option></select>-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|