{% set fileset = entity %} {% set entity_view = "overview" %} {% import "entity_macros.html" as entity_macros %} {% extends "entity_base.html" %} {% macro file_mimetype_icon(mimetype) -%} {%- if not mimetype -%}file outline {%- elif mimetype in ["application/pdf"] -%}file pdf outline {%- elif mimetype in ["application/x-hdf"] -%}database {%- elif mimetype in ["text/csv", "text/tab-separated-values"] -%}table {%- elif mimetype in ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] -%}table {%- elif mimetype in ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] -%}file alternate outline {%- elif mimetype in ["application/zip", "application/gzip", "application/x-tar", "application/x-rar", "application/x-bzip2"] -%}file archive outline {%- elif mimetype in ["application/octet-stream"] -%}save outline {%- elif mimetype.startswith("text/") -%}file alternate outline {%- elif mimetype.startswith("image/") -%}file image outline {%- elif mimetype.startswith("video/") -%}film {%- else -%}file outline{% endif %} {%- endmacro %} {% block entity_main %}

Associated Releases

{% if entity.releases != [] %} {{ entity_macros.release_list(entity.releases) }} {% else %}

This File Set is not associated with any fatcat release. {% endif %}

Public Access URLs

{% if entity.urls %} {{ entity_macros.url_list(entity.urls) }} {% else %} No known public URL, mirror, or archive for this File Set. {% endif %} {% set fileset_vars = namespace(archiveorg_base=None, webarchiveorg_base=None) %} {% for u in (entity.urls or []) %} {% if u.rel in ["archive-base"] %} {% set fileset_vars.archiveorg_base = u.url %} {% elif u.rel in ["webarchive-base"] %} {% set fileset_vars.webarchiveorg_base = u.url %} {% endif %} {% endfor %}

File Manifest ({{ fileset.manifest|count }})

{% if fileset.manifest %} {% for file in fileset.manifest %} {% endfor %}
Path Type Size
{{ file.path }}
{% if file.sha1 %} sha1:{{ file.sha1 }}
{% elif file.sha256 %}sha256:{{ file.sha256 }}
{% elif file.md5 %} md5:{{ file.md5 }}
{% endif %}
{% if file.mimetype %}{{ file.mimetype }}{% endif %} {{ file.size|filesizeformat }} {% if fileset_vars.archiveorg_base %} [archive.org]
{% endif %} {% if fileset_vars.webarchiveorg_base %} [web.archive.org]
{% endif %} {% if file.extra and file.extra.original_url %} [platform]
{% endif %} {% if file.extra and file.extra.webarchive_url%} [web.archive.org]
{% endif %}
{% else %}

This File Set is empty (contains no files). {% endif %}

{% if fileset._total_size != None %}

Total Size  {{ fileset._total_size|filesizeformat }}

{% endif %} {{ entity_macros.fatcat_bits(entity, "fileset", "", editgroup) }}
{% endblock %}