]>
Commit | Line | Data |
---|---|---|
dd3d93e3 | 1 | {% extends "../base.html" %} |
66862195 MT |
2 | |
3 | {% block title %}{{ entry.subject or _("Paste %s") % entry.uuid }}{% end block %} | |
4 | ||
65681022 MT |
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") }} | |
378f1ea2 | 15 | <a href="https://www.ipfire.org/users/{{ entry.account.uid }}">{{ entry.account }}</a> |
65681022 MT |
16 | {% else %} |
17 | {{ _("from %s") % entry.address }} | |
18 | {% end %} | |
19 | </p> | |
20 | </div> | |
21 | </div> | |
a2f81dbd | 22 | |
65681022 MT |
23 | <div class="container"> |
24 | {% if content %} | |
25 | <div class="mb-3"> | |
26 | {% module Code(content) %} | |
60b0917c | 27 | </div> |
65681022 MT |
28 | {% elif entry.mimetype.startswith("image/") %} |
29 | <img class="img-fluid mb-3" src="/raw/{{ entry.uuid }}"> | |
30 | {% end %} | |
31 | ||
e6b114b8 MT |
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> | |
a41085fb | 38 | </div> |
66862195 | 39 | {% end block %} |