{% set resource_format = resource.format|trim|lower %} {% set available = resource.extras['check:status'] and resource.extras['check:status'] >= 200 and resource.extras['check:status'] < 400 %} {% set unavailable = resource.extras['check:status'] and resource.extras['check:status'] >= 400 %} {% set last_update = resource.published if resource.published > resource.modified else resource.modified %}
{% include theme(resource_image(resource)) %}

{{ resource.title or _('Nameless resource') }}

{% if resource.owner %} {{ _('From %(owner)s', owner=resource.owner) }} — {% elif resource.organization %} {{ _("From %(owner)s", link=resource|owner_url, owner=resource.organization) }} — {% endif %} {{_('Updated on %(date)s', date=last_update|dateformat(format='long'))}} — {{ resource_format }} {% if resource.filesize %} ({{ resource.filesize | filesize }}) {% endif %} — {{ resource.metrics.views or 0 }} {{ _('downloads') }}
{% if resource.description %}
{{ resource.description|markdown }}
{% endif %}
{{ _('URL') }}
{{resource.url}}
{{ _('Permalink') }}
{{resource.json_ld.url}}
{{ _('Type') }}
{{type_label}}
{{ _('MIME Type') }}
{{resource.mime}}
{% if resource.checksum %}
{{resource.checksum.type}}
{{resource.checksum.value}}
{% endif %}
{{ _('Created on') }}
{{resource.created_at|dateformat(format='long')}}
{{ _('Modified on') }}
{{resource.modified|dateformat(format='long')}}
{{ _('Published on') }}
{{resource.published|dateformat(format='long')}}