Commit e3effb35 authored by Michal Čihař's avatar Michal Čihař

Show zen mode only if user can save translations

parent dff69414
......@@ -21,9 +21,11 @@
{% include "show-lock.html" %}
{% endwith %}
{% if perms.trans.save_translation %}
<div class="menu-float">
<a href="{% url 'zen' project=unit.translation.subproject.project.slug subproject=unit.translation.subproject.slug lang=unit.translation.language.code %}?sid={{ search_id }}" class="button" title="{% trans "Edit in Zen mode" %} (experimental)">{% trans "Zen" %}</a>
</div>
{% endif %}
<h2>{% trans "Translate" %}</h2>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment