show.html.haml 631 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
.page-heading
  %h3
3 4
    = t('.heading.title')
    %small= t('.heading.description')
Eugen Rochko's avatar
Eugen Rochko committed
5 6 7 8 9 10 11 12 13 14 15 16 17

%ul.connections
  - @authorizations.each do |authorization|
    %li
      .connection-brand{ class: authorization.provider }
        - if authorization.provider == 'twitter'
          = image_tag 'twitter-square.png', alt: 'Twitter'
        - else
          = image_tag 'logo.svg', alt: 'Mastodon'

      .connection-info
        %strong= authorization.display_name.presence || authorization.uid
        = fa_icon 'check'
18
        = link_to t('.disconnect'), authorization_path(authorization), method: :delete, class: 'connection-disconnect-link'