{% load i18n %} {% load static %} {% load getitem %} {% if source_type %} {% with media_types|getitem:source_type as media_type %} {% if "." in media_type.icon %} {% else %} {% endif %} {% endwith %} {% endif %}