{% set hide_left_bar = True %} {% extends g.theme.master %} {% block title %}{{c.user.username}} / Preferences{% endblock %} {% block header %}User Preferences for {{c.user.username}}{% endblock %} {% block content %} {% if g.theme.password_change_form %}

Change Password

{{ g.theme.password_change_form.display() }}
{% endif %} {% if g.theme.upload_key_form %}

Upload ssh public key

{{ g.theme.upload_key_form.display() }}
{% endif %}

API Token

{% if api_token %}

API Key:
{{api_token.api_key}}
Secret Key:
{{api_token.secret_key}}

{% else %}

No API token generated

{% endif %}

Authorized Third-party Applications

{% for access_tok in authorized_applications %}

{{access_tok.consumer_token.name}}

{{access_tok.consumer_token.description_html}} {{ c.revoke_access.display(value=access_tok) }}
{% endfor %} {% if not authorized_applications %}

No authorized third-party applications

{% endif %}

Subscriptions

{% if subscriptions %} {{c.form.display(action='update_subscriptions', value=dict(subscriptions=subscriptions))}} {% else%}

No subscriptions.

{% endif %}
{% if tg.config.get('auth.method', 'local') == 'local' %} {% for a in c.user.email_addresses %} {% endfor %}

Email Addresses

{% for a in c.user.email_addresses %} {% set obj = c.user.address_object(a) %} {% if obj %} {% else %} {% endif %} {% endfor %}
Primary? Address Confirmed
{{lib.radio_button('primary_addr', None, a, c.user.preferences.email_address)}} {{a}} {% if obj.confirmed %} yes {% else %} no (verify) {% endif %} Unknown addr obj {{a}}{{lib.submit_button('Delete', 'addr-%s.delete' % i)}}
{{lib.text_field('new_addr.addr', 'New Address')}} {{lib.submit_button('Claim Address', name='new_addr.claim')}}

OpenIDs Claimed

{% for oid in c.user.open_ids %} {% set obj = c.user.openid_object(oid) %} {% endfor %}
OpenID
{{oid}} {{lib.submit_button('Delete', 'oid-%s.delete' % loop.index0)}}
Claim New OpenID
{% endif %}
{{lib.submit_button('Save Changes')}}
{% endblock %}