{% extends "misago/profile/base.html" %} {% load humanize i18n misago_avatars misago_capture misago_pagination %} {% block meta-description %}{% blocktrans trimmed with user=profile changes=name_changes.paginator.count|intcomma joined_on=profile.joined_on|date count counter=name_changes.paginator.count %} {{ user }} username was changed {{ changes }} time since {{ joined_on }}. {% plural %} {{ user }} username was changed {{ changes }} times since {{ joined_on }}. {% endblocktrans %}{% endblock meta-description %} {% block page %} {% if name_changes.object_list %}

{% if is_authenticated_user %} {% blocktrans trimmed with changes=name_changes.paginator.count|intcomma count counter=name_changes.paginator.count %} Your username was changed {{ changes }} time. {% plural %} Your username was changed {{ changes }} times. {% endblocktrans %} {% else %} {% blocktrans trimmed with user=profile changes=name_changes.paginator.count|intcomma count counter=name_changes.paginator.count %} {{ user }} username was changed {{ changes }} time. {% plural %} {{ user }} username was changed {{ changes }} times. {% endblocktrans %} {% endif %}

{% for change in name_changes.object_list %} {% capture trimmed as old_username %} {{ change.old_username }} {% endcapture %} {% capture trimmed as new_username %} {{ change.new_username }} {% endcapture %}

{% if not change.changed_by_id or change.changed_by_id != profile.pk %} {% if change.changed_by_id %} {% else %} {% endif %} {% capture trimmed as changed_by %} {% if change.changed_by_id %} {{ change.changed_by_username }} {% else %} {{ change.changed_by_username }} {% endif %} {% endcapture %} {% blocktrans trimmed with changed_by=changed_by|safe old_username=old_username|safe new_username=new_username|safe %} {{ changed_by }} changed {{ old_username }}'s name to {{ new_username }} {% endblocktrans %} {% else %} {% blocktrans trimmed with old_username=old_username|safe new_username=new_username|safe %} {{ old_username }} changed name to {{ new_username }} {% endblocktrans %} {% endif %} {{ change.changed_on|date }}


{% endfor%}
{% pagination name_changes "misago/profile/pagination.html" 'misago:user_name_history' user_slug=profile.slug user_id=profile.pk %} {% else %}

{% if is_authenticated_user %} {% blocktrans trimmed with user=profile %} Your username was never changed, {{ user }}. {% endblocktrans %} {% else %} {% blocktrans trimmed with user=profile %} {{ user }}'s username was never changed. {% endblocktrans %} {% endif %}

{% endif %} {% endblock page %}