admin.html.haml 1.2 KB

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