<commit_before>{% extends "base.html" %}

{% block title %}{{ request.user.username }}'s profile{% endblock %}

{% block searcharea %}{% endblock %}

{% block head %}
<link rel="stylesheet" type="text/css" href="/static/home.css" ></link>
<style type="text/css">
 ol { list-style-type: none; padding:0; margin:0; color: gray; }
 li a { text-decoration: none; color:gray;}
form fieldset {
  border: 1px solid rgb(200,200,200);
  background-color: rgb(248, 255, 239);
  -moz-border-radius: 0; 
  -webkit-border-radius: 0; 
}
form input {
 -moz-border-radius: 0;
 padding:0;margin:0;
}
</style>
{% endblock head %}

{% block leftnav %}
<ol>
{% if not request.openid %}
<li><h3><a href="{% url django_authopenid.views.changepw %}">Change password</a></h3></li>
{% endif %}

{% if not request.openid %}
<li><h3><a href="{% url django_authopenid.views.changeemail %}">Change email address</a></h3></li>
{% endif %}
{% if request.openid %}
<li><h3><a href="{% url django_authopenid.views.changeopenid %}">Change associated OpenID</a></h3></li>
{% endif %}
<li><h3><a href="{% url profile_language %}">Set your default search language</a></h3></li>
<li><h3><a href="{% url django_authopenid.views.delete %}">Delete this account</a></h3></li>
</ol>

{% if request.openid %}
<p>Some fields such as email and country have been imported via OpenID
and should be changed with your OpenID provider, rather than with Bookworm.</p>
{% endif %}

{% if request.user.is_superuser %}

<!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>

<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-1229023982780" style="width:200px;border:1px solid #cccccc;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['HEIGHT'] = '200';
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#e0ecff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
 { id: 'div-1229023982780',
   site: '13663634855530088401'},
  skin);
</script>
{% endif %}

{% endblock %}

{% block main %}

<div id="bw-content">

{% if message or request.GET.msg or form.errors %}
<p class="bw-message"><strong>{{ message }} {{ form.errors }}</strong></p>
{% endif %}


<h1>User profile settings for {{ request.user.username }}</h1>

<form action="{% url library.views.profile %}" method="post">

  <table class="bw-meta">
    <thead>
      <tr>
        <th class="bw-table_header" colspan="2">User information</th>
      </tr>
    </thead>     
    <tbody>
      <tr>
        <th>Username</th>
        <td>{{ request.user.username }}</td>
      </tr>
      {% if request.openid %}
      <tr>
        <th>OpenID</th>
        <td>
          {% if request.session.openids %}
            {% for url in request.session.openids %} 
              {{ url }}
            {% endfor %}
          {% else %}
            {{ request.openid }}
          {% endif %}
          
      <a href="{% url django_authopenid.views.changeopenid %}">[change]</a></td>
    </tr>
    {% endif %}
    <tr>
      <th>Full name</th>
      <td>{{ form.fullname }}</td>
    </tr>

    <tr>
      <th>Email address</th>
      <td> {{ request.user.email }} {% if not request.openid %}<a href="{% url django_authopenid.views.changeemail %}">[change]</a>{% endif %} </td>
    </tr>
    {% if prefs.country %}
    <tr>
      <th>Country</th>
      <td> {{ prefs.country }}</td>
    </tr>
    {% endif %}
    {% if prefs.language %}
    <tr>
      <th>Language</th>
      <td> {{ current_search_language }} [<a href="{% url profile_language %}">change</a>]</td>
    </tr>
    {% endif %}

    <tr>
      <th>Open to last-read chapter when reading a book?</th>
      <td> {{ form.open_to_last_chapter }}</td>
    </tr>
  </tbody>
</table>

<input type="submit" name="Update profile" />

</form>
</div>

{% endblock main %}<commit_msg>Removed Google Friend gadget, corrected value in submit button<commit_after>{% extends "base.html" %}

{% block title %}{{ request.user.username }}'s profile{% endblock %}

{% block searcharea %}{% endblock %}

{% block head %}
<link rel="stylesheet" type="text/css" href="/static/home.css" ></link>
<style type="text/css">
 ol { list-style-type: none; padding:0; margin:0; color: gray; }
 li a { text-decoration: none; color:gray;}
form fieldset {
  border: 1px solid rgb(200,200,200);
  background-color: rgb(248, 255, 239);
  -moz-border-radius: 0; 
  -webkit-border-radius: 0; 
}
form input {
 -moz-border-radius: 0;
 padding:0;margin:0;
}
</style>
{% endblock head %}

{% block leftnav %}
<ol>
{% if not request.openid %}
<li><h3><a href="{% url django_authopenid.views.changepw %}">Change password</a></h3></li>
{% endif %}

{% if not request.openid %}
<li><h3><a href="{% url django_authopenid.views.changeemail %}">Change email address</a></h3></li>
{% endif %}
{% if request.openid %}
<li><h3><a href="{% url django_authopenid.views.changeopenid %}">Change associated OpenID</a></h3></li>
{% endif %}
<li><h3><a href="{% url profile_language %}">Set your default search language</a></h3></li>
<li><h3><a href="{% url django_authopenid.views.delete %}">Delete this account</a></h3></li>
</ol>

{% if request.openid %}
<p>Some fields such as email and country have been imported via OpenID
and should be changed with your OpenID provider, rather than with Bookworm.</p>
{% endif %}


{% endblock %}

{% block main %}

<div id="bw-content">

{% if message or request.GET.msg or form.errors %}
<p class="bw-message"><strong>{{ message }} {{ form.errors }}</strong></p>
{% endif %}


<h1>User profile settings for {{ request.user.username }}</h1>

<form action="{% url library.views.profile %}" method="post">

  <table class="bw-meta">
    <thead>
      <tr>
        <th class="bw-table_header" colspan="2">User information</th>
      </tr>
    </thead>     
    <tbody>
      <tr>
        <th>Username</th>
        <td>{{ request.user.username }}</td>
      </tr>
      {% if request.openid %}
      <tr>
        <th>OpenID</th>
        <td>
          {% if request.session.openids %}
            {% for url in request.session.openids %} 
              {{ url }}
            {% endfor %}
          {% else %}
            {{ request.openid }}
          {% endif %}
          
      <a href="{% url django_authopenid.views.changeopenid %}">[change]</a></td>
    </tr>
    {% endif %}
    <tr>
      <th>Full name</th>
      <td>{{ form.fullname }}</td>
    </tr>

    <tr>
      <th>Email address</th>
      <td> {{ request.user.email }} {% if not request.openid %}<a href="{% url django_authopenid.views.changeemail %}">[change]</a>{% endif %} </td>
    </tr>
    {% if prefs.country %}
    <tr>
      <th>Country</th>
      <td> {{ prefs.country }}</td>
    </tr>
    {% endif %}
    {% if prefs.language %}
    <tr>
      <th>Language</th>
      <td> {{ current_search_language }} [<a href="{% url profile_language %}">change</a>]</td>
    </tr>
    {% endif %}

    <tr>
      <th>Open to last-read chapter when reading a book?</th>
      <td> {{ form.open_to_last_chapter }}</td>
    </tr>
  </tbody>
</table>

<input type="submit" value="Update profile" />

</form>
</div>

{% endblock main %}
{'fraction_non_alphanumeric': 0.20396784232365145, 'fraction_numerical': 0.021784232365145227, 'mean_word_length': 3.2472466960352424, 'pattern_counts': {'":': 0, '<': 226, '<?xml version=': 0, '>': 226, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6950336', 'n_tokens_mistral': 2953, 'n_tokens_neox': 2636, 'n_words': 621}