admin.html.haml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. .logo
  10. %h2
  11. = link_to root_path, class: 'brand' do
  12. = site_title
  13. .sidebar__toggle
  14. .sidebar__toggle__logo
  15. = link_to root_path do
  16. = site_title
  17. = link_to '#', class: 'sidebar__toggle__icon', 'aria-label': t('navigation.toggle_menu'), 'aria-expanded': 'false' do
  18. = fa_icon 'bars'
  19. = fa_icon 'times'
  20. = render_navigation
  21. .content-wrapper
  22. .content
  23. .content__heading
  24. - if content_for?(:heading)
  25. = yield :heading
  26. - else
  27. .content__heading__row
  28. %h2= yield :page_title
  29. - if content_for?(:heading_actions)
  30. .content__heading__actions
  31. = yield :heading_actions
  32. = render 'application/flashes'
  33. = yield
  34. .sidebar-wrapper.sidebar-wrapper--empty
  35. = render template: 'layouts/application'