{% has_perm 'studies.change_study' user as can_add_study %}
{% has_perm 'studies.access_study' user study as can_access_study %}
{% has_perm 'studies.change_study' user study as can_change_study %}
{% has_perm 'studies.delete_study' user study as can_delete_study %}
{% if can_access_study %}
{% if can_change_study %}
{% if study.status != study.FINISHED %}
{% else %}
{% if not study.is_onetime_invitation %}
{% endif %}
{% endif %}
{% if can_add_study %}
{% trans 'Duplicate' %}
{% endif %}
{% endif %}
{% get_enable_study_export as enable_export %}
{% if enable_export %}
{% trans 'Export' %}
{% endif %}
{% if study.status == study.FINISHED and can_delete_study %}
{% trans 'Delete' %}
{% endif %}
{% endif %}