Commit 2ca4e708 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show MR accept info only if merge request is open

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 9b7b27ce
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
= render "projects/merge_requests/show/mr_title" = render "projects/merge_requests/show/mr_title"
= render "projects/merge_requests/show/how_to_merge" = render "projects/merge_requests/show/how_to_merge"
= render "projects/merge_requests/show/mr_box" = render "projects/merge_requests/show/mr_box"
- if @merge_request.source_branch_exists? && @merge_request.target_branch_exists? - if @merge_request.opened?
= render "projects/merge_requests/show/mr_accept" - if @merge_request.source_branch_exists? && @merge_request.target_branch_exists?
- else = render "projects/merge_requests/show/mr_accept"
= render "projects/merge_requests/show/no_accept" - else
= render "projects/merge_requests/show/no_accept"
- if @merge_request.source_project.gitlab_ci? - if @merge_request.source_project.gitlab_ci?
= render "projects/merge_requests/show/mr_ci" = render "projects/merge_requests/show/mr_ci"
= render "projects/merge_requests/show/commits" = render "projects/merge_requests/show/commits"
......
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