{% extends "package/resource_edit_base.html" %} {% block subtitle %}{{ h.dataset_display_name(pkg) }} - {{ h.resource_display_name(res) }}{% endblock %} {% block primary_content_inner %} {% set show_table = true %} {% block upload_ds_button %} {% set action = h.url_for('xloader.resource_data', id=pkg.name, resource_id=res.id) %}
{{ h.csrf_input() if 'csrf_input' in h }}
{% endblock %}
{% block delete_ds_button %} {% if res.datastore_active %} {% set delete_action = h.url_for('xloader.delete_datastore_table', id=pkg.id, resource_id=res.id) %}
{{ h.csrf_input() if 'csrf_input' in h }} {% block delete_datastore_button_text %} {{ _('Delete from DataStore') }}{% endblock %}
{% endif %} {% endblock %} {% if status.error and status.error.message %} {% set show_table = false %}
{{ _('Upload error:') }} {{ status.error.message }}
{% elif status.task_info and status.task_info.error %}
{% if status.task_info.error is mapping %} {{ _('Error:') }} {{ status.task_info.error.message }} {% for error_key, error_value in status.task_info.error.items() %} {% if error_key != "message" and error_value %}
{{ error_key }}: {{ error_value }} {% endif %} {% endfor %} {% elif status.task_info.error is iterable %} {{ _('Error traceback:') }}
{{ ''.join(status.task_info.error) }}
{% endif %}
{% endif %} {% if status.status %} {% else %} {% endif %}
{{ _('Status') }} {{ h.xloader_status_description(status) }}
{{ _('Last updated') }}{{ h.time_ago_from_timestamp(status.last_updated) }}{{ _('Never') }}
{% if status.status and status.task_info and show_table %}

{{ _('Upload Log') }}

{% endif %} {% endblock %}