From 475da57868fd69a07dd7d43adf195f3b5f3ac2bd Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 7 Jun 2013 17:33:43 +0300 Subject: [PATCH] Show native head panel for logged-in users at public area --- app/views/layouts/public.html.haml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index 5a3bb4a..615180c 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -2,15 +2,19 @@ %html{ lang: "en"} = render "layouts/head", title: "Public Projects" %body{class: "#{app_theme} application"} - %header.navbar.navbar-static-top.navbar-gitlab - .navbar-inner - .container - %div.app_logo - %span.separator - = link_to root_path, class: "home" do - %h1 GITLAB - %span.separator - %h1.project_name Public Projects + - if current_user + = render "layouts/head_panel", title: "Public Projects" + - else + %header.navbar.navbar-static-top.navbar-gitlab + .navbar-inner + .container + %div.app_logo + %span.separator + = link_to root_path, class: "home" do + %h1 GITLAB + %span.separator + %h1.project_name Public Projects + .container.navless-container .content = yield -- libgit2 0.21.2