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
|
{% load nst %}
<div class="oneliner">
<h3 class="summary">
{% if user == oneliner.user %}
<a class="editable" href="{% url bashoneliners.main.views.edit_oneliner oneliner.pk %}">
{% if not oneliner.is_published %}
<span class="draft">(Not published!)</span>
{% endif %}
</a>
{% endif %}
<a href="{% url bashoneliners.main.views.oneliner oneliner.pk %}">{{ oneliner.summary|capfirst }}</a>
</h3>
<pre><span class="prompt">$ </span>{{ oneliner.line }}</pre>
<p class="author"><small>
— by <a href="{% url bashoneliners.main.views.profile oneliner.user.pk %}"><span>{{ oneliner.user.hackerprofile.display_name|default:oneliner.user.username }}</span></a>
on <span>{{ oneliner.created_dt }}</span>
</small></p>
{% if oneliner.explanation %}
<div class="explanation">
<h3>Explanation</h3>
{{ oneliner.explanation|nst|safe }}
</div>
{% endif %}
{% if oneliner.limitations %}
<div class="limitations">
<h3>Limitations</h3>
{{ oneliner.limitations|nst|safe }}
</div>
{% endif %}
{% block related %}
{% endblock %}
</div>
|