<commit_before>{% extends "layouts/auth.html" %}
{% block title %}{{_("Who are you?")}}{% endblock %}
{% block content %}

<h1>These are profiles</h1>

{% if error %}
  <h2>Oh shits {{ error }}</h2>
{% endif %}

{% if result.new_emails %}
  <hr><h3>Discovered e-mail addresses</h3>
  <ul>
    {% for email in result.new_emails|sort %}<li>
      {% set info = result.new_emails[email] %}
      <form method="POST">
        {% if info.name %}{{ info.name }}{% endif %}
        &lt;{{ email }}&gt;
        {% if info.pgp_keys %}(on keys: {{ info.pgp_keys|join(", ") }}){% endif %}
        <input type="hidden" name="email" value="{{ email }}">
        <input type="hidden" name="name" value="{{ info.name }}">
        <input type="submit" value="Add to profiles">
        Account password: <input type="password" name="pass" value="">
      </form>
    </li>{% endfor %}
  </ul>
{% endif %}

<hr><form method="POST">
  <h3>Add another e-mail address</h3>
  E-mail: <input type="text" name="email" value=""><br>
  Name: <input type="text" name="name" value=""><br>
  Account password: <input type="password" name="pass" value=""><br>
  <input type="submit" value="Add to profiles">
</form>

{% if result.profiles %}
<hr><form method="POST">
  <input type="hidden" name="advance" value="Yes">
  <input type="submit" value="Continue...">   
</form>
<hr><h3>Configured profiles ...</h3>
<ul>
  {% for email in result.profiles|sort %}
    {% set profile = result.profiles[email] %}
    <li><form method="POST" action='/profiles/remove/{{ profile.rid }}/'
              target=_blank>
       {{ profile.name }}
       &lt;{{ email }}&gt;
       {% if email != result.default_email %}
         <input type='submit' value='Remove'>
       {% endif %}
    </form></li>
  {% endfor %}
</ul>
{% endif %}

{% endblock %}<commit_msg>Made the Profile HTML look a lil more pretty<commit_after>{% extends "layouts/auth.html" %}
{% block title %}{{_("Who are you?")}}{% endblock %}
{% block content %}

<div class="setup-box setup-box-medium animated bounceInUp">
  <h2 class="text-center"><span class="icon-profiles"></span> Profiles</h2>
  <hr>

  {% if error %}
  <h3>Oh shits {{ error }}</h3>
  <hr>
  {% endif %}
  
  {% if result.new_emails %}
    <h3>Discovered e-mail addresses</h3>
    <ul>
      {% for email in result.new_emails|sort %}<li>
        {% set info = result.new_emails[email] %}
        <form method="POST">
          {% if info.name %}{{ info.name }}{% endif %}
          &lt;{{ email }}&gt;
          {% if info.pgp_keys %}(on keys: {{ info.pgp_keys|join(", ") }}){% endif %}
          <input type="hidden" name="email" value="{{ email }}">
          <input type="hidden" name="name" value="{{ info.name }}">
          <input type="submit" value="Add to profiles">
          Account password: <input type="password" name="pass" value="">
        </form>
      </li>{% endfor %}
    </ul>
  {% endif %}
  
  <hr><form method="POST">
    <h3>Add another e-mail address</h3>
    E-mail: <input type="text" name="email" value=""><br>
    Name: <input type="text" name="name" value=""><br>
    Account password: <input type="password" name="pass" value=""><br>
    <input type="submit" value="Add to profiles">
  </form>
  
  {% if result.profiles %}
  <hr><form method="POST">
    <input type="hidden" name="advance" value="Yes">
    <input type="submit" value="Continue...">   
  </form>
  <hr><h3>Configured profiles ...</h3>
  <ul>
    {% for email in result.profiles|sort %}
      {% set profile = result.profiles[email] %}
      <li><form method="POST" action='/profiles/remove/{{ profile.rid }}/'
                target=_blank>
         {{ profile.name }}
         &lt;{{ email }}&gt;
         {% if email != result.default_email %}
           <input type='submit' value='Remove'>
         {% endif %}
      </form></li>
    {% endfor %}
  </ul>
  {% endif %}

</div>

{% endblock %}
{'fraction_non_alphanumeric': 0.2154241645244216, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 3.011340206185567, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 96, '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': '5817615', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1302, 'n_words': 313}