summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-03-10 11:34:46 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-03-10 11:34:46 +0900
commita1d485444840c98526c2b2cc1c33a805c38fd798 (patch)
tree8b3e2155f5cf9b77f650053a3a9af6492c5daa5d /templates
parentbf1e627c5972b643806fb257c4831569d6a42b27 (diff)
Initial implementation of Thread stats for mods #33, Implemented using Twig without persistent storage, and display at end of thread.
Diffstat (limited to 'templates')
-rw-r--r--templates/post_thread.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html
index 125d5f78..4ad08862 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -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>