{% load thumbnail %} {% comment %} If profile has an avatar, show it. If user is viewing their own list and they don't have an avatar, show them the Add Photo button. Otherwise show generic avatar. {% endcomment %}
{% if profile.avatar %} {% thumbnail profile.avatar "100x100" crop="center" as im %} {{profile}}'s avatar image {% endthumbnail %} {% else %} {% if profile == user.get_profile %} Please add an avatar to your profile. {% else %} Generic avatar {% endif %} {% endif %}