summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-02-04 14:56:25 -0500
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-02-04 14:56:25 -0500
commit5d2299ac210df52fefecd507073367952099c91a (patch)
treeae646e0f786003879794ae1b57ee78aa2f358587
parent3720b98e1bdea5901817dd7a58df532bd5e75077 (diff)
downloadgitlab-ce-bug/jschatz1/sidebar-issues.tar.gz
Fix diff and commit view on merge requestsbug/jschatz1/sidebar-issues
with new sidebar Fixes #3981
-rw-r--r--app/helpers/nav_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb
index 2c299d1d794..75f2ed5e054 100644
--- a/app/helpers/nav_helper.rb
+++ b/app/helpers/nav_helper.rb
@@ -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