1 {% extends
"../base.html" %}
3 {% block title %}{{ file.filename }}{% end block %}
6 <div class=
"card mb-4">
7 <div class=
"card-body">
8 {% if file.is_image() %}
9 <img class=
"img-fluid img-thumbnail" src=
"{{ file.url }}?s=768" alt=
"{{ file.filename }}">
10 {% elif file.is_pdf() %}
11 <object class=
"pdf-viewer" data=
"{{ file.url }}"
12 title=
"{{ file.filename }}" type=
"{{ file.mimetype }}">
14 {{ _(
"This PDF attachment could not be displayed.") }}
15 <a href=
"{{ file.url }}">{{ _(
"Click here to download") }}
</a>
20 <a class=
"btn btn-primary btn-lg btn-block my-3" href=
"{{ file.url }}">
21 <span class=
"fas fa-file-download"></span>
22 {{ _(
"Download") }} ({{ format_size(file.size) }})
26 <dt class=
"col-sm-3">{{ _(
"Filename") }}
</dt>
27 <dd class=
"col-sm-9">{{ file.filename }}
</dd>
30 <dt class=
"col-sm-3">{{ _(
"Author") }}
</dt>
32 <a href=
"/users/{{ file.author.uid }}">{{ file.author }}
</a>
36 <dt class=
"col-sm-3">{{ _(
"Uploaded at") }}
</dt>
37 <dd class=
"col-sm-9">{{ locale.format_date(file.created_at) }}
</dd>