1 {% extends
"../page.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 <p class=
"text-center">
10 <img class=
"img-fluid img-thumbnail" src=
"{{ file.url }}?s=768" alt=
"{{ file.filename }}">
12 {% elif file.is_pdf() %}
13 <object class=
"pdf-viewer" data=
"{{ file.url }}"
14 title=
"{{ file.filename }}" type=
"{{ file.mimetype }}">
16 {{ _(
"This PDF attachment could not be displayed.") }}
17 <a href=
"{{ file.url }}">{{ _(
"Click here to download") }}
</a>
22 <a class=
"btn btn-primary btn-lg btn-block my-3" href=
"{{ file.url }}">
23 <span class=
"fas fa-file-download"></span>
24 {{ _(
"Download") }} ({{ format_size(file.size) }})
28 <dt class=
"col-sm-3">{{ _(
"Filename") }}
</dt>
29 <dd class=
"col-sm-9">{{ file.filename }}
</dd>
32 <dt class=
"col-sm-3">{{ _(
"Author") }}
</dt>
34 <a href=
"/users/{{ file.author.uid }}">{{ file.author }}
</a>
38 <dt class=
"col-sm-3">{{ _(
"Uploaded at") }}
</dt>
39 <dd class=
"col-sm-9">{{ locale.format_date(file.created_at) }}
</dd>
42 {% if file.is_image() %}
43 <h6>{{ _(
"Usage") }}
</h6>
45 <pre><code>![](./{{ file.filename }})
</code></pre>
47 <p>{{ _(
"Or with an optional caption") }}
</p>
49 <pre><code>![](./{{ file.filename }}
"{{ _("Caption
") }}")
</code></pre>