{% extends "/base.html" %} {% set active_page = "projects" %} {% set active_project = "all" %} {% import "projects/_helpers.html" as helper %} {% block content %} {{ helper.render_project_local_nav(project, "tasks", current_user) }} {{ helper.render_loading(text=loading_text) }}
{{ helper.render_project_title(project, upload_method, subtitle=_('Export All Tasks and Task Runs'))}}

{{ _('You can export and download') }} {{ _('all the available') }} {{ _('Tasks and Task Runs (the submitted answers by the users) in CSV or JSON formats.') }}

{{_('Export in CSV format')}}
{% if n_tasks != 0 %} {{ _('Tasks') }} {% else %} {{ _('Tasks') }} {% endif %} {% if n_task_runs != 0 %} {{ _('Task Runs') }} {% else %} {{ _('Task Runs') }} {% endif %}
{{_('Export in JSON format')}}
{% if n_tasks != 0 %} {{ _('Tasks') }} {% else %} {{ _('Tasks') }} {% endif %} {% if n_task_runs != 0 %} {{ _('Task Runs') }} {% else %} {{ _('Task Runs') }} {% endif %}
{% if current_user.is_authenticated() and project.owner_id == current_user.id %}
{% if ckan_name %}

{{ _('Export to the') }} {{ckan_name}}

{% else %}

{{ _('Export to a CKAN server') }}

{% endif %}

{{ _('IMPORTANT') }} {{ _('This export option stills in beta mode and may fail in the CKAN server. If you get an error, please send an e-mail to info@pybossa.com') }}

{% if current_user.ckan_api %} {{_('Tasks')}} {{_('Task Runs')}} {% else %}

{{ _("You don't have a Datahub.io API key in your") }} {{BRAND}} {{ _('account. Please,') }} {{ _('create an account') }} {{ _('and copy/paste the API key in your profile in order to use this exporter') }}.

{% endif %}
{% endif %}
{% endblock %}