show.html.haml 655 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

%ul.connections
  - @authorizations.each do |authorization|
    %li
      .connection-brand{ class: authorization.provider }
        - if authorization.provider == 'twitter'
Yamagishi Kazutoshi's avatar
Yamagishi Kazutoshi committed
11
          = image_pack_tag 'images/twitter-square.png', alt: 'Twitter'
Eugen Rochko's avatar
Eugen Rochko committed
12
        - else
Yamagishi Kazutoshi's avatar
Yamagishi Kazutoshi committed
13
          = image_pack_tag 'images/logo.svg', alt: 'Mastodon'
Eugen Rochko's avatar
Eugen Rochko committed
14 15 16 17

      .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'