{% extends "base.html" %} {% block title %}{{ info.file.name }} - transbeam{% endblock %} {% block og_title %}{{ info.file.name }}{% endblock %} {% block og_description -%} {% let formatted_total_size = bytesize::to_string(info.file.size.clone(), false).replace(" ", "") -%} {% match info.file.contents -%} {% when Some with (files) -%} {{ files.len() }} files, {{ formatted_total_size }} total {%- else -%} {{ formatted_total_size }} {%- endmatch %}, expires {{ info.file.expiry.format(DATE_DISPLAY_FORMAT).unwrap() }} {%- endblock %} {% block relative_path %}download?code={{ info.code }}{% endblock %} {% block head %} {% endblock %} {% block body %}
{{ info.file.name }}
{{ bytesize::to_string(info.file.size.clone(), false).replace(" ", "") }}
Expires {{ info.file.expiry.format(DATE_DISPLAY_FORMAT).unwrap() }}
{% match info.file.contents %} {% when Some with (files) %}
Show file list {% let offsets = info.offsets.as_ref().unwrap() %} {% for f in files %} {% endfor %}
{{ bytesize::to_string(f.size.clone(), false).replace(" ", "") }} {{ f.name }}
{% else %} {% endmatch %} {% endblock %}