admin.html.haml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. - content_for :header_tags do
  2. = render_initial_state
  3. = javascript_pack_tag 'public', crossorigin: 'anonymous'
  4. - content_for :content do
  5. .admin-wrapper
  6. .sidebar-wrapper
  7. .sidebar-wrapper__inner
  8. .sidebar
  9. = link_to root_path do
  10. = render_logo
  11. .sidebar__toggle
  12. .sidebar__toggle__logo
  13. = link_to root_path do
  14. = logo_as_symbol(:wordmark)
  15. = link_to '#', class: 'sidebar__toggle__icon' do
  16. = fa_icon 'bars'
  17. = render_navigation
  18. .content-wrapper
  19. .content
  20. .content__heading
  21. - if content_for?(:heading)
  22. = yield :heading
  23. - else
  24. .content__heading__row
  25. %h2= yield :page_title
  26. - if content_for?(:heading_actions)
  27. .content__heading__actions
  28. = yield :heading_actions
  29. = render 'application/flashes'
  30. = yield
  31. .sidebar-wrapper.sidebar-wrapper--empty
  32. = render template: 'layouts/application'