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