{#- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} {% 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 %}

Preferences

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

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' % loop.index0)}}
{% endif %}
{{lib.text_field('new_addr.addr', 'New Email Address')}} {{lib.submit_button('Claim Address', name='new_addr.claim')}}
{% if c.user.open_ids %}

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)}}
{% endif %} {% endif %}
{{lib.submit_button('Save Changes')}}
{% 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 %} {% if tg.config.get('auth.method', 'local') == 'local' %}

API Token

{% if api_token %}

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

{% else %}

No API token generated

{% endif %}
{% endif %} {% endblock %}