{% extends 'base.html' %} {% load i18n %} {% load static %} {% load bootstrap4 %} {% block title %}{% trans 'Your Profile' %}{% endblock title %} {% block content %}

{% trans 'Your Profile' %} - {% if user.first_name and user.last_name %} {{ user.first_name }} {{ user.last_name }} {% else %} {{ user.username }} {% endif %}

{% if user.confirmedemail_set.count or user.confirmedopenid_set.count %}

{% trans 'You have the following confirmed identities:' %}

{% for email in user.confirmedemail_set.all %} {% if user.confirmedemail_set.all|length == 1%}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% endfor %} {% for openid in user.confirmedopenid_set.all %} {% if user.confirmedopenid_set.all|length == 1 %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% endfor %}
{% endif %} {% if user.unconfirmedemail_set.count or user.unconfirmedopenid_set.count %}

{% trans 'You have the following unconfirmed email addresses and OpenIDs:' %}

{% for email in user.unconfirmedemail_set.all %}
{% csrf_token %}
{{ email.email }}
{# TODO: (expires in xx hours) #} {% endfor %} {% for openid in user.unconfirmedopenid_set.all %}
{% csrf_token %}
{{ openid.openid }}
{# TODO: (expires in xx hours) #} {% endfor %} {% endif %}

{% if not max_emails %}{% trans 'Add a new email address' %} {% endif %} {% trans 'Add a new OpenID' %}

{% if user.photo_set.count %}

{% trans 'Here are the photos you have uploaded/imported:' %}

{% for photo in user.photo_set.all %}

{% trans 'Image' %} {{ forloop.counter }}

{% endfor %}
{% endif %} {% if not max_photos %}

{% trans 'Upload a new photo' %}  {% trans 'Import photo from other services' %}

{% else %} {% trans "You've reached the maximum number of allowed images!" %}
{% trans "No further images can be uploaded." %} {% endif %}
{% endblock content %}