Fix diff and commit view on merge requests

with new sidebar
Fixes #3981
This commit is contained in:
Jacob Schatz 2016-02-04 14:56:25 -05:00
parent 3720b98e1b
commit 5d2299ac21
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ module NavHelper
end
def page_gutter_class
if current_path?('merge_requests#show') || current_path?('issues#show')
if current_path?('merge_requests#show') ||
current_path?('merge_requests#diffs') ||
current_path?('merge_requests#commits') ||
current_path?('issues#show')
if cookies[:collapsed_gutter] == 'true'
"page-gutter right-sidebar-collapsed"
else