{# Displays whether the resource is broken or not Variable passed-in include: "resource": {} and all the Archival.as_dict() info from the package_show's resource['archiver'] e.g. "status_id": 0, "status": "Archived successfully", "is_broken": false, "is_broken_printable": "Downloaded OK", "reason": "", "url_redirected_to": null, # Details of last successful archival "cache_filepath": "/tmp/archive/ad/ad30c8f3-b3c7-4d5c-928f-df89f2cd7855/hospitals", "cache_url": "http://localhost:4050/ad/ad30c8f3-b3c7-4d5c-928f-df89f2cd7855/hospitals", "size": "7695" "mimetype": "text/html", "hash": "5466f7a55a2fc24fab4466c84fcde73d6d31c82a", # History "first_failure": null, "last_success": "2015-11-17T10:28:00.018577", "failure_count": 0, "created": "2015-11-16T18:15:14.391913", "updated": "2015-11-17T10:28:00.018577", "resource_timestamp": "2015-10-29T11:09:07.258784", #}
Broken Link Status | {% if is_broken == True %} {% trans %}Link is broken{% endtrans %} |
{% elif is_broken == None %}
{% trans %} Link check is not conclusive{% endtrans %} |
{% else %}
{% trans %} Link is ok{% endtrans %} |
{% endif %}
Reason | {{ reason }} | ||
Failure Count | {% if failure_count == 1 %}{% trans %}This is a one-off failure{% endtrans %} | {% else %}{% trans first_failure=h.render_datetime(first_failure) %}This resource has failed {{ failure_count }} times in a row since it first failed: {{ first_failure }}{% endtrans %} | {% endif %}|
Last Success | {% if last_success %}{% trans last_success=h.render_datetime(last_success) %}This resource was last ok: {{ last_success }}{% endtrans %} | {% else %}{% trans created=h.render_datetime(created) %}We do not have a past record of it working since the first check: {{ created }}{% endtrans %} | {% endif %}|
Last Updated | {% trans updated=h.render_datetime(updated) %}{{ updated }}{% endtrans %} |