##// END OF EJS Templates
Speedups to the post template
neko259 -
r611:cd050f5d default
parent child Browse files
Show More
@@ -42,7 +42,7 b''
42 42 ; return false;">&gt;&gt;</a>]
43 43 {% endif %}
44 44 {% if is_opening and need_open_link %}
45 {% if post.thread_new.archived %}
45 {% if thread.archived %}
46 46 [<a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>]
47 47 {% else %}
48 48 [<a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>]
@@ -68,15 +68,17 b''
68 68 {{ post.text.rendered }}
69 69 {% endif %}
70 70 {% endautoescape %}
71 {% if post.is_referenced %}
72 <div class="refmap">
73 {% trans "Replies" %}:
74 {% for ref_post in post.get_sorted_referenced_posts %}
75 <a href="{{ ref_post.get_url }}">&gt;&gt;{{ ref_post.id }}</a
76 >{% if not forloop.last %},{% endif %}
77 {% endfor %}
78 </div>
79 {% endif %}
71 {% with refposts=post.get_sorted_referenced_posts %}
72 {% if refposts %}
73 <div class="refmap">
74 {% trans "Replies" %}:
75 {% for ref_post in refposts %}
76 <a href="{{ ref_post.get_url }}">&gt;&gt;{{ ref_post.id }}</a
77 >{% if not forloop.last %},{% endif %}
78 {% endfor %}
79 </div>
80 {% endif %}
81 {% endwith %}
80 82 </div>
81 83 {% endcache %}
82 84 {% if is_opening %}
General Comments 0
You need to be logged in to leave comments. Login now