diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-07-26 13:57:43 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-30 13:05:40 +0200 |
commit | c9c2503c5186a38302ed606f793b52ffa394f52c (patch) | |
tree | f03f46d41d71dcaf71bc867fa4ec949f8dc5931e /app/views/projects | |
parent | 2778dec131c2afac9fcdb2c42365b69099a5ae5b (diff) | |
download | gitlab-ce-c9c2503c5186a38302ed606f793b52ffa394f52c.tar.gz |
User can edit closed MR with deleted fork
Add test for closed MR without fork
Add view test visibility of Reopen and Close buttons
Fix controller tests and validation method
Fix missing space
Remove unused variables from test
closed_without_fork? method refactoring
Add information about missing fork
When closed MR without fork can't edit target branch
Tests for closed MR edit view
Fix indentation and rebase, refactoring
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/merge_requests/show/_mr_title.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/merge_requests/show/_mr_title.html.haml b/app/views/projects/merge_requests/show/_mr_title.html.haml index 098ce19da21..48016645019 100644 --- a/app/views/projects/merge_requests/show/_mr_title.html.haml +++ b/app/views/projects/merge_requests/show/_mr_title.html.haml @@ -1,3 +1,7 @@ +- if @merge_request.closed_without_fork? + .alert.alert-danger + %p Source project is not a fork of the target project + .clearfix.detail-page-header .issuable-header .issuable-status-box.status-box{ class: status_box_class(@merge_request) } |