summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/widget/open/_wip.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/merge_requests/widget/open/_wip.html.haml')
-rw-r--r--app/views/projects/merge_requests/widget/open/_wip.html.haml20
1 files changed, 12 insertions, 8 deletions
diff --git a/app/views/projects/merge_requests/widget/open/_wip.html.haml b/app/views/projects/merge_requests/widget/open/_wip.html.haml
index 9268d68ba34..30482bce750 100644
--- a/app/views/projects/merge_requests/widget/open/_wip.html.haml
+++ b/app/views/projects/merge_requests/widget/open/_wip.html.haml
@@ -1,9 +1,13 @@
-%h4
- This merge request cannot be accepted because it is marked as Work In Progress.
+- if @allowed_to_merge
+ %h4
+ This merge request cannot be accepted because it is marked as Work In Progress.
-%p
- %button.btn.disabled{:type => 'button'}
- %i.fa.fa-warning
- Accept Merge Request
-  
- When the merge request is ready, remove the "WIP" prefix from the title to allow it to be accepted.
+ %p
+ %button.btn.disabled{:type => 'button'}
+ %i.fa.fa-warning
+ Accept Merge Request
+  
+ When the merge request is ready, remove the "WIP" prefix from the title to allow it to be accepted.
+- else
+ %strong This merge request is marked as Work In Progress.
+ Only those with write access to this repository can merge merge requests.