modal.html.haml 729 B

1234567891011121314151617181920
  1. - content_for :header_tags do
  2. = javascript_pack_tag 'public', crossorigin: 'anonymous'
  3. - content_for :content do
  4. - if user_signed_in? && !@hide_header
  5. .account-header
  6. .avatar= image_tag current_account.avatar.url(:original)
  7. .name
  8. = t 'users.signed_in_as'
  9. %span.username @#{current_account.local_username_and_domain}
  10. = link_to destroy_user_session_path(continue: true), method: :delete, class: 'logout-link icon-button', title: t('applications.logout'), 'aria-label': t('applications.logout') do
  11. = fa_icon 'sign-out'
  12. .container-alt= yield
  13. .modal-layout__mastodon
  14. %div
  15. %img{ alt: '', draggable: 'false', src: mascot_url }
  16. = render template: 'layouts/application'