]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - templates/nopaste/view.html
08d909256e3a5654695a5bc4dfba68ab2c54cf70
[people/shoehn/ipfire.org.git] / templates / nopaste / view.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ entry.subject or _("Paste %s") % entry.uuid }}{% end block %}
4
5 {% block body %}
6 <div class="page-header">
7 <h3>{{ entry.subject or _("Paste %s") % entry.uuid }}</h3>
8 </div>
9
10 <pre style="min-height: 25em">{{ entry.content }}</pre>
11
12 <div class="row">
13 <div class="col-md-6">
14 <dl class="dl-horizontal">
15 {% if entry.account %}
16 <dt>{{ _("Uploaded by") }}</dt>
17 <dd>
18 <img src="{{ entry.account.gravatar_icon(14) }}" alt="{{ entry.account.name }}">
19 {{ entry.account.name }}
20 </dd>
21 {% elif current_user and entry.address %}
22 <dt>{{ _("Uploaded from") }}</dt>
23 <dd>{{ entry.address }}</dd>
24 {% end %}
25
26 <dt>{{ _("Created") }}</dt>
27 <dd>{{ locale.format_date(entry.time_created) }}</dd>
28
29 <dt>{{ _("Expires") }}</dt>
30 <dd>
31 {% if entry.time_expires %}
32 {{ locale.format_date(entry.time_expires) }}
33 {% else %}
34 {{ _("never") }}
35 {% end %}
36 </dd>
37 </dl>
38 </div>
39
40 <div class="col-md-6 ar">
41 <ul class="list-inline">
42 <li>
43 <span class="glyphicon glyphicon-link"></span>
44 <a href="/view/{{ entry.uuid }}">{{ _("Link") }}</a>
45 </li>
46 <li>
47 <span class="glyphicon glyphicon-download"></span>
48 <a href="/raw/{{ entry.uuid }}">{{ _("Download") }}</a>
49 </li>
50 <li>
51 <span class="glyphicon glyphicon-alert text-warning"></span>
52 <a class="text-warning" href="mailto:abuse@ipfire.org?subject={{ "nopaste.ipfire.org: %s" % entry.uuid }}">
53 {{ _("Report abuse") }}
54 </a>
55 </li>
56 </ul>
57 </div>
58 </div>
59 {% end block %}