diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-13 13:16:40 +0300 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-13 15:40:05 +0300 |
commit | 34586c1894882ce1ec2a0978d16cbd23d8603986 (patch) | |
tree | 440aeba10fef8bdbdc7857ead6f9552da0f81214 /app | |
parent | bef1292cbd0588bbd9daa9484a00381d95ffbf94 (diff) |
Improve grammar
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/merge_requests_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index e9a61e2c2a6..8abe7865fed 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -98,7 +98,7 @@ module MergeRequestsHelper end def merge_request_button_visibility(merge_request, closed) - return 'hidden' if merge_request.can_reopen? + return 'hidden' if merge_request.closed? == closed || (merge_request.merged? == closed && !merge_request.closed?) || merge_request.closed_without_fork? end def merge_request_version_path(project, merge_request, merge_request_diff, start_sha = nil) |