{% load profile %}
{% load i18n %}


{% with profile=member|profile %}
    <a
        href="{{ profile.get_absolute_url }}"
        class="member-item"
        itemscope
        itemtype="http://schema.org/Person"
        {% if author %}
            itemprop="author"
        {% endif %}
    >{% spaceless %}
        {% if avatar %}
            <img src="{{ profile.get_avatar_url }}" alt="" class="avatar" itemprop="image">
        {% endif %}

        <span itemprop="name">{{ member.username }}</span>

        {% if info %}
            <span class="info">({{ info }})</span>
        {% endif %}
    {% endspaceless %}</a>
{% endwith %}