1. Benoit Boissinot
  2. transifex

Commits

Diego Búrigo Zacarão  committed c016096

bugfix: Don't display 'Add new translation' for non-checkedout components (#394)

  • Participants
  • Parent commits f4ff538
  • Branches default

Comments (0)

Files changed (1)

File transifex/templates/projects/component_detail.html

View file
 {% if component.allows_submission %}
  {% get_permission "project_perm.submit_file" for request.user and component.project,1 as "can_submit_file" %}
  {% if perms.projects.submit_file or can_submit_file %}
-    {% if stats %}
+    {% if component.unit.last_checkout %}
         {% include "projects/component_submit_new_file.html" %}
     {% endif %}
  {% endif %}