{% load i18n %} {% load thumbnail %} {% if userprofile %} {% if userprofile.avatar %} {% thumbnail userprofile.avatar "50x50" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% else %} {% endif %}