|
|
|
@ -15,13 +15,13 @@
|
|
|
|
|
<% if @forked_project.nil? %>
|
|
|
|
|
<%= 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('pull_request_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_project" value="source_project" 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="pull_request_branch" class = "ml30 fontGrey3 fb fl" style = "width:140px; padding:5px 0 5px 5px;">
|
|
|
|
|
<select name="target_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>
|
|
|
|
|
<option value="<%= rev %>"><%= rev %></option>
|
|
|
|
|
<% end %>
|
|
|
|
|
</select>
|
|
|
|
|
<% end %>
|
|
|
|
|