gitlab-org--gitlab-foss/app/views/layouts/errors.html.haml
Timothy Andrew 1f713d52d7 Render gon data in the page body, not head
- Turbolinks caches the `head`, so `gon` updates don't show up unless
  the user navigates to page directly (by URL) or performs a refresh.
- The solution is to render `gon` in the body instead.
- Also update the syntax to the new Rails 4 (according to the gon
  README) syntax.
2016-06-06 12:50:31 +05:30

10 lines
277 B
Text

!!! 5
%html{ lang: "en"}
= render "layouts/head"
%body{class: "#{user_application_theme} application navless"}
= Gon::Base.render_data
= render "layouts/header/empty"
.container.navless-container
= render "layouts/flash"
.error-page
= yield