glitchier-soc/app/views/layouts/admin.html.haml
Matt Jankowski 092fdc89fa Fix flashes partial render error for controllers which don't inherit from application controller (#2400)
* Add failing spec for oauth/authorized_applications controller

* Use explicit reference to flashes partial from admin layout

Because some of the controllers which use the admin layout do not inherit from
application controller, this partial is not in their view path.
2017-04-24 17:30:30 +02:00

20 lines
510 B
Text

- content_for :header_tags do
= javascript_include_tag 'application_public', integrity: true, crossorigin: 'anonymous'
- content_for :content do
.admin-wrapper
.sidebar-wrapper
.sidebar
= link_to root_path do
= image_tag 'logo.png', class: 'logo'
= render_navigation
.content-wrapper
.content
%h2= yield :page_title
= render 'application/flashes'
= yield
= render template: "layouts/application", locals: { body_classes: 'admin' }