{% can_upload_transaltion user object as user_can_upload_translation %}
<li><ahref="{% url 'download_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}"title="{% trans "Downloadforanofflinetranslation."%}">{% blocktrans with object.subproject.file_format_name as format %}Download original translation file ({{format}}){% endblocktrans %}</a></li>
<li><ahref="{% url 'download_translation_format' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code fmt='xliff'%}"title="{% trans "Downloadforanofflinetranslation."%}">{% trans "Download translation as XLIFF" %}</a></li>
...
...
@@ -8,7 +11,7 @@
{% if object.supports_language_pack %}
<li><ahref="{% url 'download_language_pack' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}"title="{% trans "Downloadforusingwithinanapplication."%}">{% trans "Download compiled translation" %}</a></li>
{% endif %}
{% if perms.trans.upload_translation %}
{% if user_can_upload_translation %}
<lirole="separator"class="divider"></li>
<li><ahref="#upload"data-toggle="tab">{% trans "Upload translation" %}</a></li>