Commit 475da57868fd69a07dd7d43adf195f3b5f3ac2bd
1 parent
3c2b085b
Exists in
master
and in
4 other branches
Show native head panel for logged-in users at public area
Showing
1 changed file
with
13 additions
and
9 deletions
Show diff stats
app/views/layouts/public.html.haml
| ... | ... | @@ -2,15 +2,19 @@ |
| 2 | 2 | %html{ lang: "en"} |
| 3 | 3 | = render "layouts/head", title: "Public Projects" |
| 4 | 4 | %body{class: "#{app_theme} application"} |
| 5 | - %header.navbar.navbar-static-top.navbar-gitlab | |
| 6 | - .navbar-inner | |
| 7 | - .container | |
| 8 | - %div.app_logo | |
| 9 | - %span.separator | |
| 10 | - = link_to root_path, class: "home" do | |
| 11 | - %h1 GITLAB | |
| 12 | - %span.separator | |
| 13 | - %h1.project_name Public Projects | |
| 5 | + - if current_user | |
| 6 | + = render "layouts/head_panel", title: "Public Projects" | |
| 7 | + - else | |
| 8 | + %header.navbar.navbar-static-top.navbar-gitlab | |
| 9 | + .navbar-inner | |
| 10 | + .container | |
| 11 | + %div.app_logo | |
| 12 | + %span.separator | |
| 13 | + = link_to root_path, class: "home" do | |
| 14 | + %h1 GITLAB | |
| 15 | + %span.separator | |
| 16 | + %h1.project_name Public Projects | |
| 17 | + | |
| 14 | 18 | .container.navless-container |
| 15 | 19 | .content |
| 16 | 20 | = yield | ... | ... |