<commit_before>extends ../layout
include ../partials/activities

block content
  .account-page.content-page
    .page-header
      h3 Change Password

    form.form-horizontal(action='/account/password', method='POST')
      input(type='hidden', name='_csrf', value=_csrf)
      .form-group
        label.col-sm-3.control-label(for='password') New Password
        .col-sm-7
          input.form-control(type='password', name='password', id='password')
      .form-group
        label.col-sm-3.control-label(for='confirmPassword') Confirm Password
        .col-sm-7
          input.form-control(type='password', name='confirmPassword', id='confirmPassword')
      .form-group
        .col-sm-offset-3.col-sm-4
          button.btn.btn-primary(type='submit')
            i.fa.fa-lock
            | Change Password

    .page-header
      h3 Delete Account

    form.form-horizontal(action='/account/delete', method='POST')
      .form-group
        p.col-sm-offset-3.col-sm-4 You can delete your account, but keep in mind this action is irreversible.
        input(type='hidden', name='_csrf', value=_csrf)
        .col-sm-offset-3.col-sm-4
          button.btn.btn-danger(type='submit')
            i.fa.fa-trash
            | Delete my account

    .page-header
      h3 Linked Accounts
    .form-horizontal
      .form-group
        .col-sm-offset-3.col-sm-4
          if user.google
            p: a.text-danger(href='/account/unlink/google') Unlink your Google account
          else
            p: a(href='/auth/google') Link your Google account
        .col-sm-offset-3.col-sm-4
          if user.facebook
            p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
          else
            p: a(href='/auth/facebook') Link your Facebook account
  script(src='/js/profile.js')<commit_msg>Style social media "Link to" buttons<commit_after>extends ../layout
include ../partials/activities

block content
  .account-page.content-page
    .page-header
      h3 Change Password

    form.form-horizontal(action='/account/password', method='POST')
      input(type='hidden', name='_csrf', value=_csrf)
      .form-group
        label.col-sm-3.control-label(for='password') New Password
        .col-sm-7
          input.form-control(type='password', name='password', id='password')
      .form-group
        label.col-sm-3.control-label(for='confirmPassword') Confirm Password
        .col-sm-7
          input.form-control(type='password', name='confirmPassword', id='confirmPassword')
      .form-group
        .col-sm-offset-3.col-sm-4
          button.btn.btn-primary(type='submit')
            i.fa.fa-lock
            | Change Password

    .page-header
      h3 Delete Account

    form.form-horizontal(action='/account/delete', method='POST')
      .form-group
        p.col-sm-offset-3.col-sm-4 You can delete your account, but keep in mind this action is irreversible.
        input(type='hidden', name='_csrf', value=_csrf)
        .col-sm-offset-3.col-sm-4
          button.btn.btn-danger(type='submit')
            i.fa.fa-trash
            | Delete my account

    .page-header
      h3 Linked Accounts
    .form-horizontal
      .form-group
        .col-sm-offset-3.col-sm-4
          if user.facebook
            p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
          else
            a.btn.btn-block.btn-facebook.btn-social(href='/auth/facebook')
              i.fa.fa-facebook
              | Link your Facebook account
          if user.google
            p: a.text-danger(href='/account/unlink/google') Unlink your Google account
          else
            a.btn.btn-block.btn-google.btn-social(href='/auth/google')
              i.fa.fa-google-plus
              | Link your Google account
  script(src='/js/profile.js')
{'fraction_non_alphanumeric': 0.1328781512605042, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 2.124692370795734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2105833', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1149, 'n_words': 217}