{% extends "package/resource_edit_base.html" %} {% block subtitle %}{{ h.dataset_display_name(pkg) }} - {{ h.resource_display_name(res) }}{% endblock %} {% block primary_content_inner %} {% set action = h.url_for('datapusher.resource_data', id=pkg.name, resource_id=res.id) %} {% set show_table = true %}
{{ h.csrf_input() }}
{% 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 string %} {# DataPusher < 0.0.3 #} {{ _('Error:') }} {{ status.task_info.error }} {% elif 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.datapusher_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 %}