Initial implementation of Thread stats for mods #33, Implemented using Twig without persistent storage, and display at end of thread.
This commit is contained in:
parent
bf1e627c59
commit
a1d4854448
@ -87,9 +87,16 @@
|
|||||||
{% if not index %}
|
{% if not index %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>{% endfilter %}
|
</div>{% endfilter %}
|
||||||
|
{% set iparray = [post.ip] %}
|
||||||
{% set hr = post.hr %}
|
{% set hr = post.hr %}
|
||||||
{% for post in post.posts %}
|
{% for post in post.posts %}
|
||||||
|
{% if post.ip not in iparray %}
|
||||||
|
{% set iparray = iparray|merge([post.ip]) %}
|
||||||
|
{% endif %}
|
||||||
{% include 'post_reply.html' %}
|
{% include 'post_reply.html' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if mod and not index %}
|
||||||
|
<p>Unique IPs: {{ iparray|length }} </p>
|
||||||
|
{% endif %}
|
||||||
<br class="clear"/>{% if hr %}<hr/>{% endif %}
|
<br class="clear"/>{% if hr %}<hr/>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user