%p.slead
  Should you ever lose your phone, each of these recovery codes can be used one
  time each to regain access to your account. Please save them in a safe place, or you
  %b will
  lose access to your account.

.codes.card
  %ul
    - @codes.each do |code|
      %li
        %span.monospace= code

.d-flex
  = link_to 'Proceed', profile_account_path, class: 'btn btn-success append-right-10'
  = link_to 'Download codes', "data:text/plain;charset=utf-8,#{URI.encode(@codes.join("\n"))}", download: "gitlab-recovery-codes.txt", class: 'btn btn-default'

%p.slead
  Should you ever lose your phone, each of these recovery codes can be used one
  time each to regain access to your account. Please save them in a safe place, or you
  %b will
  lose access to your account.

.codes.card
  %ul
    - @codes.each do |code|
      %li
        %span.monospace= code

.d-flex
  = link_to 'Proceed', profile_account_path, class: 'btn btn-success append-right-10'
  = link_to 'Download codes', "data:text/plain;charset=utf-8,#{CGI.escape(@codes.join("\n"))}", download: "gitlab-recovery-codes.txt", class: 'btn btn-default'

Fix haml-lint error in 2FA codes partial
Fix haml-lint error in 2FA codes partial

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51585
