diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-01 15:57:28 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-01 15:57:28 +0100 |
commit | c9a8f2a03ec6510b5579cf51798b6f2bf870089b (patch) | |
tree | f5149187a147d8c675141a25484397bfdf3ded8e /app/views/layouts/header | |
parent | b2f0b3f14582f92f94fe12ca7c2694c213d9bbc4 (diff) | |
download | gitlab-ce-c9a8f2a03ec6510b5579cf51798b6f2bf870089b.tar.gz |
Enable search for logged-out users
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/layouts/header')
-rw-r--r-- | app/views/layouts/header/_public.html.haml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/layouts/header/_public.html.haml b/app/views/layouts/header/_public.html.haml index a6a26518a0e..1d249895b23 100644 --- a/app/views/layouts/header/_public.html.haml +++ b/app/views/layouts/header/_public.html.haml @@ -5,6 +5,16 @@ .pull-right = link_to "Sign in", new_session_path(:user, redirect_to_referer: 'yes'), class: 'btn btn-sign-in btn-success' + .navbar-collapse.collapse + %ul.nav.navbar-nav.pull-right + - 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', container: 'body'} do + = icon('search') + %h1.title= title + = render 'shared/outdated_browser' |