{% extends "sora/usercp/layout.html" %} {% load i18n %} {% load url from future %} {% import "_forms.html" as form_theme with context %} {% import "sora/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=_('Change your Username')) }}{% endblock %} {% block action %}

{% trans %}Change your Username{% endtrans %}

{% if message %}{{ macros.draw_message(message, 'alert-form') }}{% endif %}

{% if changes_left > 0 -%} {% trans count=changes_left -%} You can change your username one more time. {%- pluralize -%} You can change your username {{ count }} more times. {%- endtrans %} {%- else -%} {% trans %}You have exceeded the maximum number of name changes.{% endtrans %} {%- if acl.usercp.changes_expire() -%}
{% trans next_change=next_change|reldate|low %}You will be able to change your username on {{ next_change }}{% endtrans %} {%- endif %} {%- endif %}

{% if changes_left > 0 %}
{{ form_theme.form_widget(form, width=9) }}
{% endif %} {% if changes_history|length > 0 %}

{% trans count=changes_history|length -%} Last name changes {%- pluralize -%} Last {{ count }} name changes {%- endtrans %}

{% for change in changes_history %} {% endfor %}
{% trans %}Old Name{% endtrans %} {% trans %}Change Date{% endtrans %}
{{ change.old_username }} {{ change.date|reltimesince }}
{% endif %} {% endblock %}