{% load i18n %} {% load statistics %} {% url component_toggle_lock_file pofile.object.project.slug pofile.object.slug pofile.filename as toggle_lock_url %} {% with pofile.locks.get.owner as owner %} {% if pofile.locked %} {% ifequal request.user.username owner.username %}
{% else %} {% endifequal %} {% else %} {% if request.user.is_authenticated and perms.translations.add_pofilelock %} {% else %} {% endif %} {% endif %} {% endwith %}