Commit 071de30f80ea471c48f52ff1f5d728089b75a8c0
1 parent
db0c353a
Exists in
master
and in
4 other branches
Fix app theme being ignored for public projects
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
3 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/common.scss
| @@ -350,6 +350,7 @@ table { | @@ -350,6 +350,7 @@ table { | ||
| 350 | .navbar-gitlab .navbar-inner .nav > li .btn-sign-in { | 350 | .navbar-gitlab .navbar-inner .nav > li .btn-sign-in { |
| 351 | @extend .btn-new; | 351 | @extend .btn-new; |
| 352 | padding: 5px 15px; | 352 | padding: 5px 15px; |
| 353 | + text-shadow: none; | ||
| 353 | } | 354 | } |
| 354 | 355 | ||
| 355 | .broadcast-message { | 356 | .broadcast-message { |
app/views/layouts/public.html.haml
| 1 | !!! 5 | 1 | !!! 5 |
| 2 | %html{ lang: "en"} | 2 | %html{ lang: "en"} |
| 3 | = render "layouts/head", title: "Public Projects" | 3 | = render "layouts/head", title: "Public Projects" |
| 4 | - %body{class: "ui_mars application", :'data-page' => body_data_page} | 4 | + %body{class: "#{app_theme} application", :'data-page' => body_data_page} |
| 5 | - if current_user | 5 | - if current_user |
| 6 | = render "layouts/head_panel", title: "Public Projects" | 6 | = render "layouts/head_panel", title: "Public Projects" |
| 7 | - else | 7 | - else |
app/views/layouts/public_projects.html.haml
| 1 | !!! 5 | 1 | !!! 5 |
| 2 | %html{ lang: "en"} | 2 | %html{ lang: "en"} |
| 3 | = render "layouts/head", title: @project.name_with_namespace | 3 | = render "layouts/head", title: @project.name_with_namespace |
| 4 | - %body{class: "ui_mars application", :'data-page' => body_data_page} | 4 | + %body{class: "#{app_theme} application", :'data-page' => body_data_page} |
| 5 | = render "layouts/public_head_panel" | 5 | = render "layouts/public_head_panel" |
| 6 | %nav.main-nav | 6 | %nav.main-nav |
| 7 | .container= render 'layouts/nav/project' | 7 | .container= render 'layouts/nav/project' |