diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-26 11:51:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-26 11:51:28 +0200 |
commit | 0276e9032a5c31548844e76e913d9c50039cf054 (patch) | |
tree | b756130cc7627c2cc74da301c60418aed012f54b /app/helpers/page_layout_helper.rb | |
parent | 7140e800ee701a8d4b117590107f26ca23ce0e60 (diff) | |
download | gitlab-ce-0276e9032a5c31548844e76e913d9c50039cf054.tar.gz |
Limit content width for big screens except certain pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/page_layout_helper.rb')
-rw-r--r-- | app/helpers/page_layout_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/page_layout_helper.rb b/app/helpers/page_layout_helper.rb index 01b6a63552c..8473d6d75d0 100644 --- a/app/helpers/page_layout_helper.rb +++ b/app/helpers/page_layout_helper.rb @@ -23,4 +23,12 @@ module PageLayoutHelper @sidebar end end + + def fluid_layout(enabled = false) + if @fluid_layout.nil? + @fluid_layout = enabled + else + @fluid_layout + end + end end |