Unverified Commit d49b9939 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Small UI improvements to MR form

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent cd108a82
......@@ -39,6 +39,11 @@
= link_to url_for_new_issue(@project, only_path: true), title: "New Issue", class: 'btn btn-sm' do
New issue
- if can? current_user, :write_merge_request, @project
= link_to new_namespace_project_merge_request_path(@project.namespace, @project), class: "btn btn-sm", title: "New Merge Request" do
New Merge Request
%h3.page-title Compare branches for new Merge Request
%p.lead Compare branches for new Merge Request
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], url: new_namespace_project_merge_request_path(@project.namespace, @project), method: :get, html: { class: "merge-request-form form-inline" } do |f|
......@@ -52,8 +51,8 @@
are the same.
= f.submit 'Compare branches', class: "btn btn-primary mr-compare-btn"
= f.submit 'Compare branches', class: "btn btn-new mr-compare-btn"
var source_branch = $("#merge_request_source_branch")
......@@ -8,7 +8,7 @@
= link_to 'Change branches', mr_change_branches_path(@merge_request)
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form' } do |f|
= render 'projects/issuable_form', f: f, issuable: @merge_request
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment