{% load i18n %} {% load addons %} {% load submissions %} {% url component_submit_file pofile.object.project.slug pofile.object.slug pofile.filename as file_submit_url %} {% with pofile.filename as pofile_filename %} {% endwith %}
{% trans "Submit file" %}

{% if perms.projects.submit_file or can_submit_file %} {% else %} {% endif %}

{% comment %}Temporarily hooks are disabled here, until we improve the compontent detail view{% endcomment %} {% load locks_tags %} {% with pofile.locks.valid.get as lock %} {% if lock %} {% ifequal request.user lock.owner %} Keep file locked {% else %}

{% trans "This file is locked by someone else." %}

{% endifequal %} {% endif %} {% endwith %} {% comment %}{% hook "component.html" submit %}{% endcomment %}