]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/nopaste/view.html
CSS: Replace btn-block with buttons wrapped in d-grid
[ipfire.org.git] / src / templates / nopaste / view.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ entry.subject or _("Paste %s") % entry.uuid }}{% end block %}
4
5 {% block container %}
6 <div class="header">
7 <div class="container">
8 <h1>{{ entry.subject or _("Paste %s") % entry.uuid }}</h1>
9
10 <p class="text-muted">
11 {{ _("Uploaded %s") % locale.format_date(entry.time_created) }}
12
13 {% if entry.account %}
14 {{ _("by") }}
15 <a href="https://people.ipfire.org/users/{{ entry.account.uid }}">{{ entry.account }}</a>
16 {% else %}
17 {{ _("from %s") % entry.address }}
18 {% end %}
19 </p>
20 </div>
21 </div>
22
23 <div class="container">
24 {% if content %}
25 <div class="mb-3">
26 {% module Code(content) %}
27 </div>
28 {% elif entry.mimetype.startswith("image/") %}
29 <img class="img-fluid mb-3" src="/raw/{{ entry.uuid }}">
30 {% end %}
31
32 <div class="d-grid">
33 <a class="btn btn-primary btn-lg" href="/raw/{{ entry.uuid }}">
34 <span class="fas fa-file-download"></span>
35 {{ _("Download") }} ({{ format_size(entry.size) }})
36 </a>
37 </div>
38 </div>
39 {% end block %}