{% extends "profiles/base.html" %} {% load i18n %} {% load avatar_tags %} {% load app_plugins %} {% load uni_form %} {% block head_title %}{% blocktrans %}Profile for {{ other_user }}{% endblocktrans %}{% endblock %} {% block body %}
{% include "profiles/profile_right_panel.html" %}
{% avatar other_user 80 %}
{% if is_me %} (replace) {% endif %}

{% blocktrans %}Profile for {{ other_user }}{% endblocktrans %}

{% if other_user.get_profile.name %}

{% trans "Name" %}: {{ other_user.get_profile.name }}

{% endif %} {% if other_user.get_profile.about %}

{% trans "About" %}: {{ other_user.get_profile.about }}

{% endif %} {% if other_user.get_profile.location%}

{% trans "Location" %}: {{ other_user.get_profile.location }}

{% endif %} {% if other_user.get_profile.website %}

{% trans "Website" %}: {{ other_user.get_profile.website }}

{% endif %}
{% if user.is_authenticated %}

{% trans "Followers" %}: {{ other_user.followers.count|default:"0" }} {% trans "Following" %}: {{ other_user.followed.count|default:"0" }}

{% if is_me %}

{% trans "Edit profile" %}

{% else %} {# @@@ this could be done with ajax, or at the very least turned into an inclusion tag #}
{% if is_following %} {% else %} {% endif %}
{# @@@ this should be an inclusion tag #} {% if is_friend %}

{% blocktrans %}You are friends with {{ other_user }}.{% endblocktrans %} {% trans "Send a message" %}.

{% else %} {% if previous_invitations_from %}

{% blocktrans %}{{ other_user }} has requested friendship.{% endblocktrans %}

{% for invitation in previous_invitations_from %}

From {{ invitation.from_user }} ({{ invitation.sent }}):

{{ invitation.message }}

{% endfor %} {% else %} {% if previous_invitations_to %}

{% trans "Friendship request sent." %}

{% else %}

{% trans "Add As Friend" %}

{{ invite_form|as_uni_form }}
{% blocktrans %}{{ other_user }} to be a friend.{% endblocktrans %}
{% endif %} {# previous_invitations_to #} {% endif %} {# previous_invitations_from #} {% endif %} {# is_friend #} {% endif %} {# is me #} {% plugin_point "profiles.profile" user=other_user owner=other_user viewer=user %} {% else %} {# not user.is_authenticated #} {% url acct_signup as signup_url %} {% url acct_login as login_url %}

{% blocktrans %}Sign up and log in to add this person as a friend and see their tweets and blog posts.{% endblocktrans %}

{% endif %}
{% endblock %} {% block extra_body %} {% endblock %}