diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 16:01:04 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 16:01:04 +0300 |
commit | 3e97de838c6a2a37e1daa5ab8c3cd1fa350b1a7e (patch) | |
tree | ae5cfcd8cd0f045ef45f86312e9eb0a46200b106 /app/views/layouts/header | |
parent | db197aa61a3451bbe8eff1dea5dc992997b11b61 (diff) |
Hide search panel for group page if you dont have access
Diffstat (limited to 'app/views/layouts/header')
-rw-r--r-- | app/views/layouts/header/_default.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml index 3892f71c0e3..c31b1cbe9a8 100644 --- a/app/views/layouts/header/_default.html.haml +++ b/app/views/layouts/header/_default.html.haml @@ -7,8 +7,9 @@ .navbar-collapse.collapse %ul.nav.navbar-nav.pull-right - %li.hidden-sm.hidden-xs - = render 'layouts/search' + - unless @disable_search_panel + %li.hidden-sm.hidden-xs + = render 'layouts/search' %li.visible-sm.visible-xs = link_to search_path, title: 'Search', data: {toggle: 'tooltip', placement: 'bottom'} do = icon('search') |