<commit_before>{% extends 'home.html' %}
{% load js i18n base_utils widget_tweaks markdown_deux_tags %}

{% block body_id %}profile{% endblock body_id %}

{% block title %}{% trans 'Profile' %}{% endblock title %}

{% block application_content %}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span10 spacer100"></div>
    </div>
    <div class="row-fluid">
      <div class="span10 offset1" id="profile">
        <div class="row-fluid">
          <div class="span5">
            {% if mongodb_user.avatar_url %}
              <div class="pull-right avatar-frame">
                <img src="{{ mongodb_user.avatar_url }}" />
              </div>
            {% endif %}

            <h1 class="user-profile">{% trans "Your profile" %}</h1>

            <form method='POST'>
              {% csrf_token %}

              <table class="table table-hover">
                <tr>
                  <td>{% trans "username" %}</td>
                  <td><strong>@{{ user.username }}</strong></td>
                </tr>
                <tr>
                  <td>{% trans "First name" %}</td>
                  <td>{{ user.first_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last name" %}</td>
                  <td>{{ user.last_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "e-mail" %}</td>
                  <td>{{ user.email }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last login: " %}</td>
                  <td>{{ user.last_login }}</td>
                </tr>
                <tr>
                  <td>{% trans "Registered:" %}</td>
                  <td>{{ user.date_joined  }}</td>
                </tr>

              </table>

            <p class="muted">{% trans "Profile data is editable on your social account provider profile page (eg. Google, Facebook, etc)." %}</p>

            {% if user.is_superuser %}
              <h3>{% trans "Super-user access" %}</h3>
              <table class="table table-hover">
                <tr>
                  <td>{% trans "PostgreSQL" %}</td>
                  <td><code class="muted">DjangoUser.objects.get(id={{ user.id }})</code></td>
                </tr>
                <tr>
                  <td>{% trans "MongoDB" %}</td>
                  <td><code class="muted">User.objects.get(id='{{ mongodb_user.id }}')</code></td>
                </tr>
              </table>
            {% endif %}

            <!--

              <div class=" control-group {% if form.errors %}error{% endif %}">
               {% if form.errors %}
                   <span class="label label-warning">{% for error in form.errors %}
                       {{ error }}
                   {% endfor %}</span>
               {% endif %}
              </div>
              <div class="input-append control-group {% if form.errors %}error{% endif %}">
                <button type="submit" class="btn-flat">{% trans "Save" %}</button>
              </div><commit_msg>Enhance the non-editable profile data message.<commit_after>{% extends 'home.html' %}
{% load js i18n base_utils widget_tweaks markdown_deux_tags %}

{% block body_id %}profile{% endblock body_id %}

{% block title %}{% trans 'Profile' %}{% endblock title %}

{% block application_content %}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span10 spacer100"></div>
    </div>
    <div class="row-fluid">
      <div class="span10 offset1" id="profile">
        <div class="row-fluid">
          <div class="span5">
            {% if mongodb_user.avatar_url %}
              <div class="pull-right avatar-frame">
                <img src="{{ mongodb_user.avatar_url }}" />
              </div>
            {% endif %}

            <h1 class="user-profile">{% trans "Your profile" %}</h1>

            <form method='POST'>
              {% csrf_token %}

              <table class="table table-hover">
                <tr>
                  <td>{% trans "username" %}</td>
                  <td><strong>@{{ user.username }}</strong></td>
                </tr>
                <tr>
                  <td>{% trans "First name" %}</td>
                  <td>{{ user.first_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last name" %}</td>
                  <td>{{ user.last_name }}</td>
                </tr>
                <tr>
                  <td>{% trans "e-mail" %}</td>
                  <td>{{ user.email }}</td>
                </tr>
                <tr>
                  <td>{% trans "Last login: " %}</td>
                  <td>{{ user.last_login }}</td>
                </tr>
                <tr>
                  <td>{% trans "Registered:" %}</td>
                  <td>{{ user.date_joined  }}</td>
                </tr>

              </table>

            <p class="muted">{% trans "These data are not stored durably in 1flow. They are offered courtesy of your social account provider (eg. Google, Twitter…). Change any parameter directly there, it will be reflected here next time you sign in." %}</p>

            {% if user.is_superuser %}
              <h3>{% trans "Super-user access" %}</h3>
              <table class="table table-hover">
                <tr>
                  <td>{% trans "PostgreSQL" %}</td>
                  <td><code class="muted">DjangoUser.objects.get(id={{ user.id }})</code></td>
                </tr>
                <tr>
                  <td>{% trans "MongoDB" %}</td>
                  <td><code class="muted">User.objects.get(id='{{ mongodb_user.id }}')</code></td>
                </tr>
              </table>
            {% endif %}

            <!--

              <div class=" control-group {% if form.errors %}error{% endif %}">
               {% if form.errors %}
                   <span class="label label-warning">{% for error in form.errors %}
                       {{ error }}
                   {% endfor %}</span>
               {% endif %}
              </div>
              <div class="input-append control-group {% if form.errors %}error{% endif %}">
                <button type="submit" class="btn-flat">{% trans "Save" %}</button>
              </div>
{'fraction_non_alphanumeric': 0.17259615384615384, 'fraction_numerical': 0.004967948717948718, 'mean_word_length': 1.3568731117824773, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 173, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4210442', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1717, 'n_words': 436}