{% if not has_permission('[[ name|camel_to_snake ]]', 'update', instance) and not has_permission('[[ name|camel_to_snake ]]', 'delete', instance) %} {% else %} [ {% include "[[ name|camel_to_snake ]]/_action_edit.html" %} | {% include "[[ name|camel_to_snake ]]/_action_delete.html" %} ] {% endif %}