/
entry_detail.html
32 lines (25 loc) · 1015 Bytes
/
entry_detail.html
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
{% extends "base_weblog.html" %}
{% block title %}Weblog | {{ object.headline|escape }}{% endblock %}
{% block content %}
<h1>{{ object.headline|safe }}</h1>
{{ object.body|safe }}
<p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
{% load comments %}
{% get_comment_list for blog.entry object.id as comment_list %}
<div id="content-secondary">
<h2 id="comments">Comments</h2>
{% for comment in comment_list %}
<div class="comment" id="c{{ comment.id }}">
<h3>{{ comment.user_name|escape }} <span class="small quiet">{{ comment.submit_date|date:"F j, Y" }} at {{ comment.submit_date|date:"P" }}</span></h3>
{{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
</div>
{% endfor %}
{% if object.comments_enabled %}
<h2>Post a comment</h2>
{% render_comment_form for blog.entry object.id %}
{% else %}
<h2>Comments are closed</h2>
<p>To prevent spam, comments are no longer allowed after sixty days.</p>
{% endif %}
</div>
{% endblock %}