闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
661 B

  1. - content_for :header_tags do
  2. = javascript_include_tag 'application_public', integrity: true, crossorigin: 'anonymous'
  3. - content_for :content do
  4. .admin-wrapper
  5. .sidebar-wrapper
  6. .sidebar
  7. = link_to root_path do
  8. = image_tag 'logo.png', class: 'logo'
  9. = render_navigation
  10. .content-wrapper
  11. .content
  12. %h2= yield :page_title
  13. - if flash[:notice]
  14. .flash-message.notice
  15. %strong= flash[:notice]
  16. - if flash[:alert]
  17. .flash-message.alert
  18. %strong= flash[:alert]
  19. = yield
  20. = render template: "layouts/application", locals: { body_classes: 'admin' }