123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- {% 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 %}
- <p class="lead">
- {% 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 %}
- </p>
- <div class="username-history">
- {% for change in name_changes.object_list %}
- {% capture trimmed as old_username %}
- <strong>{{ change.old_username }}</strong>
- {% endcapture %}
- {% capture trimmed as new_username %}
- <strong>{{ change.new_username }}</strong>
- {% endcapture %}
- <p>
- {% if not change.changed_by_id or change.changed_by_id != profile.pk %}
- {% if change.changed_by_id %}
- <a href="{% url USER_PROFILE_URL user_slug=change.changed_by_slug user_id=change.changed_by_id %}">
- <img src="{{ change.changed_by_id|avatar:22 }}" class="tooltip-top" title="{{ change.changed_by_username }}">
- </a>
- {% else %}
- <img src="{% blankavatar 22 %}" class="tooltip-top" title="{{ change.changed_by_username }}">
- {% endif %}
- {% capture trimmed as changed_by %}
- {% if change.changed_by_id %}
- <a href="{% url USER_PROFILE_URL user_slug=change.changed_by_slug user_id=change.changed_by_id %}">{{ change.changed_by_username }}</a>
- {% else %}
- <strong>{{ change.changed_by_username }}</strong>
- {% 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 %}
- <img src="{{ profile.pk|avatar:22 }}" class="tooltip-top" title="{{ profile }}">
- {% blocktrans trimmed with old_username=old_username|safe new_username=new_username|safe %}
- {{ old_username }} changed name to {{ new_username }}
- {% endblocktrans %}
- {% endif %}
- <abbr class="pull-right text-muted tooltip-top dynamic time-ago" title="{{ change.changed_on }}" data-timestamp="{{ change.changed_on|date:"c" }}">
- {{ change.changed_on|date }}
- </abbr>
- </p>
- <hr>
- {% endfor%}
- </div>
- {% pagination name_changes "misago/profile/pagination.html" 'misago:user_name_history' user_slug=profile.slug user_id=profile.pk %}
- {% else %}
- <p class="lead">
- {% 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 %}
- </p>
- {% endif %}
- {% endblock page %}
|