1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{% extends "base.html" %}
{% load nst %}
{% block pagetitle %}top 50{% endblock %}
{% block keywords %}{% endblock %}
{% block description %}{% endblock %}
{% block content %}
{% for oneliner in oneliners %}
<div class="oneliner">
<p class="author">
@<span>{{ oneliner.hacker.username }}</span>
on <span>{{ oneliner.created_dt }}</span>
#
{{ oneliner.get_votes_up }} <img src="/media/icons/thumbsup.png"/>
{{ oneliner.get_votes_down }} <img src="/media/icons/thumbsdown.png"/>
</p>
<pre>{% for line in oneliner.lines %}$ {{ line }}<br/>{% endfor %}</pre>
<div class="summary">
{{ oneliner.summary }}
</div>
{% if oneliner.explanation %}
<div class="explanation">
<h3>Explanation</h3>
{{ oneliner.explanation|nst|safe }}
</div>
{% endif %}
{% if oneliner.caveats %}
<div class="caveats">
<h3>Caveats</h3>
{{ oneliner.caveats|nst|safe }}
</div>
{% endif %}
<div class="eof">### EOF ###</div>
</div>
{% endfor %}
{% endblock %}
|