Commit 907317c4 authored by Fatih Acet's avatar Fatih Acet

Added routes for conflicts in merge requests page.

parent 1db31dbe
...@@ -9,11 +9,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -9,11 +9,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController
before_action :module_enabled before_action :module_enabled
before_action :merge_request, only: [ before_action :merge_request, only: [
:edit, :update, :show, :diffs, :commits, :builds, :merge, :merge_check, :edit, :update, :show, :diffs, :commits, :conflicts, :builds, :merge, :merge_check,
:ci_status, :toggle_subscription, :cancel_merge_when_build_succeeds, :remove_wip :ci_status, :toggle_subscription, :cancel_merge_when_build_succeeds, :remove_wip
] ]
before_action :validates_merge_request, only: [:show, :diffs, :commits, :builds] before_action :validates_merge_request, only: [:show, :diffs, :commits, :builds]
before_action :define_show_vars, only: [:show, :diffs, :commits, :builds] before_action :define_show_vars, only: [:show, :diffs, :commits, :conflicts, :builds]
before_action :define_widget_vars, only: [:merge, :cancel_merge_when_build_succeeds, :merge_check] before_action :define_widget_vars, only: [:merge, :cancel_merge_when_build_succeeds, :merge_check]
before_action :define_commit_vars, only: [:diffs] before_action :define_commit_vars, only: [:diffs]
before_action :define_diff_comment_vars, only: [:diffs] before_action :define_diff_comment_vars, only: [:diffs]
...@@ -130,6 +130,13 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -130,6 +130,13 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end end
end end
def conflicts
respond_to do |format|
format.html { render 'show' }
end
end
def builds def builds
respond_to do |format| respond_to do |format|
format.html do format.html do
......
...@@ -24,6 +24,7 @@ module NavHelper ...@@ -24,6 +24,7 @@ module NavHelper
current_path?('merge_requests#diffs') || current_path?('merge_requests#diffs') ||
current_path?('merge_requests#commits') || current_path?('merge_requests#commits') ||
current_path?('merge_requests#builds') || current_path?('merge_requests#builds') ||
current_path?('merge_requests#conflicts') ||
current_path?('issues#show') current_path?('issues#show')
if cookies[:collapsed_gutter] == 'true' if cookies[:collapsed_gutter] == 'true'
"page-gutter right-sidebar-collapsed" "page-gutter right-sidebar-collapsed"
......
...@@ -718,6 +718,7 @@ Rails.application.routes.draw do ...@@ -718,6 +718,7 @@ Rails.application.routes.draw do
member do member do
get :commits get :commits
get :diffs get :diffs
get :conflicts
get :builds get :builds
get :merge_check get :merge_check
post :merge post :merge
......
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