]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - templates/nopaste/view.html
Massive web site update
[people/shoehn/ipfire.org.git] / templates / nopaste / view.html
CommitLineData
66862195
MT
1{% extends "../base.html" %}
2
3{% block title %}{{ entry.subject or _("Paste %s") % entry.uuid }}{% end block %}
4
60b0917c
MT
5{% block container %}
6 <section class="container content-section">
7 <div class="page-header">
8 <h3 class="text-center">{{ entry.subject or _("Paste %s") % entry.uuid }}</h3>
9 </div>
66862195 10
60b0917c
MT
11 {% if content %}
12 <pre class="prettyprint linenums" style="min-height: 25em">{{ content }}</pre>
b0b3e3e7 13
60b0917c
MT
14 <link rel="stylesheet" href="{{ static_url("css/prettify.css") }}">
15 <script src="{{ static_url("js/prettify.js") }}"></script>
16 <script>prettyPrint()</script>
17 {% else %}
18 <div class="ac">
19 <br><br>
b0b3e3e7 20
60b0917c
MT
21 <a class="btn btn-primary btn-lg" href="/raw/{{ entry.uuid }}">
22 <span class="glyphicon glyphicon-download"></span>
23 {{ _("Download File") }}
24 </a>
b0b3e3e7 25
60b0917c
MT
26 <p class="text-muted">
27 {{ _("Filesize: %s") % format_size(entry.size) }}
28 </p>
b0b3e3e7 29
60b0917c
MT
30 <br><br>
31 </div>
b0b3e3e7 32
60b0917c
MT
33 <hr>
34 {% end %}
66862195 35
60b0917c
MT
36 <div class="row">
37 <div class="col-md-6">
38 <dl class="dl-horizontal">
39 {% if entry.account %}
40 <dt>{{ _("Uploaded by") }}</dt>
41 <dd>
42 <img src="{{ entry.account.gravatar_icon(14) }}" alt="{{ entry.account.name }}">
43 {{ entry.account.name }}
44 </dd>
45 {% elif current_user and entry.address %}
46 <dt>{{ _("Uploaded from") }}</dt>
47 <dd>{{ entry.address }}</dd>
48 {% end %}
66862195 49
60b0917c
MT
50 <dt>{{ _("Created") }}</dt>
51 <dd>{{ locale.format_date(entry.time_created) }}</dd>
66862195 52
60b0917c
MT
53 <dt>{{ _("Views") }}</dt>
54 <dd>{{ entry.views }}</dd>
bfbf061b 55
60b0917c
MT
56 <dt>{{ _("Expires") }}</dt>
57 <dd>
58 {% if entry.time_expires %}
59 {{ locale.format_date(entry.time_expires) }}
60 {% else %}
61 {{ _("never") }}
62 {% end %}
63 </dd>
64 </dl>
65 </div>
66862195 66
60b0917c
MT
67 <div class="col-md-6 ar">
68 <ul class="list-inline">
69 <li>
70 <span class="glyphicon glyphicon-link"></span>
71 <a href="/view/{{ entry.uuid }}">{{ _("Link") }}</a>
72 </li>
73 <li>
74 <span class="glyphicon glyphicon-download"></span>
75 <a href="/raw/{{ entry.uuid }}">{{ _("Download") }}</a>
76 </li>
77 <li>
78 <span class="glyphicon glyphicon-alert text-warning"></span>
79 <a class="text-warning" href="mailto:abuse@ipfire.org?subject={{ "nopaste.ipfire.org: %s" % entry.uuid }}">
80 {{ _("Report abuse") }}
81 </a>
82 </li>
83 </ul>
84 </div>
66862195 85 </div>
60b0917c 86 </section>
66862195 87{% end block %}