admin.html.haml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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', 'aria-label': t('navigation.toggle_menu'), 'aria-expanded': 'false' do
  16. = fa_icon 'bars'
  17. = fa_icon 'times'
  18. = render_navigation
  19. .content-wrapper
  20. .content
  21. .content__heading
  22. - if content_for?(:heading)
  23. = yield :heading
  24. - else
  25. .content__heading__row
  26. %h2= yield :page_title
  27. - if content_for?(:heading_actions)
  28. .content__heading__actions
  29. = yield :heading_actions
  30. = render 'application/flashes'
  31. = yield
  32. .sidebar-wrapper.sidebar-wrapper--empty
  33. = render template: 'layouts/application'