{% load i18n %} {% load avatar_tags %} {% load account_tags %} {% user_display other_user as other_user_display %} {% if is_me %}

{% trans "Your Tribes" %}

{% if other_user.tribes.all %} {% for tribe in other_user.tribes.all %} {{ tribe.name }} {% endfor %} {% else %} {% url tribe_list as tribe_url %}

{% blocktrans %}You are not yet a member of any tribes.{% endblocktrans %}

{% endif %}

{% trans "Your Friends" %}

{% if other_friends %} {% for friendship in other_friends %} {% if forloop.counter0|divisibleby:"3" %}{% endif %} {% if forloop.counter0|add:"1"|divisibleby:"3" %}{% endif %} {% endfor %} {% if other_friends|length|divisibleby:"3" %}{% else %}{% endif %}
{% avatar friendship.friend 40 %}
{% else %}

{% blocktrans %}None. You should look at the list of profiles and see if there's anyone you know.{% endblocktrans %}

{% endif %}
{% endif %} {% if is_friend %}

{% blocktrans %}{{ other_user_display }}'s Tribes{% endblocktrans %}

{% if other_user.tribes.all %} {% for tribe in other_user.tribes.all %} {{ tribe.name }} {% endfor %} {% else %}

{% blocktrans %}Not yet a member of any tribes.{% endblocktrans %}

{% endif %}

{% blocktrans %}{{ other_user_display }}'s Friends{% endblocktrans %}

{% for friendship in other_friends %} {% if forloop.counter0|divisibleby:"3" %}{% endif %} {% if forloop.counter0|add:"1"|divisibleby:"3" %}{% endif %} {% endfor %} {% if other_friends|length|divisibleby:"3" %}{% else %}{% endif %}
{% avatar friendship.friend 40 %}
{% endif %}