{% load pybb_tags %}
{% pybb_get_profile user=user as user_profile %} {% if user_profile.avatar %} {% if 'sorl.thumbnail'|check_app_installed %} {% include 'pybb/_sorl_thumbnail_avatar.html' %} {% elif 'easy_thumbnails'|check_app_installed %} {% include 'pybb/_easy_thumbnail_avatar.html' %} {% else %} {{ user_profile.get_display_name }} avatar {% endif %} {% else %} {% if user_profile %} {{ user_profile.get_display_name }} avatar {% else %} default avatar {% endif %} {% endif %}