forked from leftypol/leftypol
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
3f236c3f25
commit
3ef22877cc
1 changed files with 7 additions and 0 deletions
|
@ -87,9 +87,16 @@
|
|||
{% if not index %}
|
||||
{% endif %}
|
||||
</div>{% endfilter %}
|
||||
{% set iparray = [post.ip] %}
|
||||
{% set hr = post.hr %}
|
||||
{% for post in post.posts %}
|
||||
{% if post.ip not in iparray %}
|
||||
{% set iparray = iparray|merge([post.ip]) %}
|
||||
{% endif %}
|
||||
{% include 'post_reply.html' %}
|
||||
{% endfor %}
|
||||
{% if mod and not index %}
|
||||
<p>Unique IPs: {{ iparray|length }} </p>
|
||||
{% endif %}
|
||||
<br class="clear"/>{% if hr %}<hr/>{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue