<commit_before>= render partial: 'shared/profileheader', locals: { thinker: @thinker }
.row
  .col-md-4
    = render partial: 'shared/profilebar', locals: { thinker: @thinker }
  .col-md-8
    .panel.panel-default
      .list-group
        .list-group-item
          - if @thinker.otp_required_for_login
            = link_to(disable_otp_path(@thinker), :title => t('disable') , :role => "button", "data-method" => :put, class: "btn pull-right") do
              = icon('times', :class => "fa-lg")
              Disable
            %strong
              OTP Enabled
          - else
            = link_to(enable_otp_path(@thinker), :title => t('enable') , :role => "button", "data-method" => :put, class: "btn pull-right") do
              = icon('check', :class => "fa-lg")
              Enable
            %strong
              OTP Disabled
        - if flash[:otp_enabled]
          .list-group-item
            Codes
            = link_to(otp_path(@thinker), :title => t('hide') , :role => "button", class: "btn pull-right") do
              = icon('eye-slash', :class => 'fa-lg dark-grey')
              = t 'hide'
          .list-group-item
            %strong
              Secrets
          .list-group-item
            Code
            %span.pull-right
              = @thinker.otp_secret
          .list-group-item{ style: "height: 119px;" }
            QRCode
            .pull-right
              = raw RQRCode::render_qrcode(current_thinker.otp_provisioning_uri(current_thinker.email), :svg, :level => :l, :unit => 2)
        - else
          .list-group-item
            Codes
            %a.btn.pull-right{ type: 'button', 'data-toggle' => 'modal', href: '#div-password-confirmation' }
              = icon('eye', :class => 'fa-lg dark-grey')
              = t 'show'

#div-password-confirmation.modal.fade{ tabindex: -1, role: 'dialog' }
  .modal-dialog
    .modal-content
      = form_for @thinker, url: codes_otp_path(@thinker), as: :otp, method: :put do |f|
        .modal-body
          = f.label :confirm_password, class: 'control-label'
          = f.password_field :password, class: 'form-control', autocomplete: 'off'
        .modal-footer
          %button.btn.btn-default{ type: 'button', 'data-dismiss' => 'modal' }
            = t 'close'
          = f.submit t('confirm'), class: 'btn btn-primary'<commit_msg>Fixed view for show OTP<commit_after>= render partial: 'shared/profileheader', locals: { thinker: @thinker }
.row
  .col-md-4
    = render partial: 'shared/profilebar', locals: { thinker: @thinker }
  .col-md-8
    .panel.panel-default
      .list-group
        .list-group-item
          - if @thinker.otp_required_for_login
            = link_to(disable_otp_path(@thinker), :title => t('disable') , :role => "button", "data-method" => :put, class: "btn pull-right") do
              = icon('times', :class => "fa-lg")
              Disable
            %strong
              OTP Enabled
          - else
            = link_to(enable_otp_path(@thinker), :title => t('enable') , :role => "button", "data-method" => :put, class: "btn pull-right") do
              = icon('check', :class => "fa-lg")
              Enable
            %strong
              OTP Disabled
        - if @thinker.otp_required_for_login
          - if flash[:otp_enabled]
            .list-group-item
              Codes
              = link_to(otp_path(@thinker), :title => t('hide') , :role => "button", class: "btn pull-right") do
                = icon('eye-slash', :class => 'fa-lg dark-grey')
                = t 'hide'
            .list-group-item
              %strong
                Secrets
            .list-group-item
              Code
              %span.pull-right
                = @thinker.otp_secret
            .list-group-item{ style: "height: 119px;" }
              QRCode
              .pull-right
                = raw RQRCode::render_qrcode(current_thinker.otp_provisioning_uri(current_thinker.email), :svg, :level => :l, :unit => 2)
          - else
            .list-group-item
              Codes
              %a.btn.pull-right{ type: 'button', 'data-toggle' => 'modal', href: '#div-password-confirmation' }
                = icon('eye', :class => 'fa-lg dark-grey')
                = t 'show'

#div-password-confirmation.modal.fade{ tabindex: -1, role: 'dialog' }
  .modal-dialog
    .modal-content
      = form_for @thinker, url: codes_otp_path(@thinker), as: :otp, method: :put do |f|
        .modal-body
          = f.label :confirm_password, class: 'control-label'
          = f.password_field :password, class: 'form-control', autocomplete: 'off'
        .modal-footer
          %button.btn.btn-default{ type: 'button', 'data-dismiss' => 'modal' }
            = t 'close'
          = f.submit t('confirm'), class: 'btn btn-primary'
{'fraction_non_alphanumeric': 0.1509315469960226, 'fraction_numerical': 0.002930709650408206, 'mean_word_length': 1.8138987043580683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2946520', 'n_tokens_mistral': 1519, 'n_tokens_neox': 1481, 'n_words': 313}