{% load i18n plmapp_tags %} {% if obj|main_type == "document" and obj.files.count > 0 %} {% trans "Add new files" %} {% endif %}