# HG changeset patch # User neko259 # Date 2013-11-23 20:46:29 # Node ID 80f183ebbe132ea8433eacae9431360f31fe7083 # Parent f86393d8b9d39033f4cfb3df0fb74ab9f772cdb0 Fixed thread OP id in thread view. Fixed reply count in thread view diff --git a/boards/static/js/thread_update.js b/boards/static/js/thread_update.js --- a/boards/static/js/thread_update.js +++ b/boards/static/js/thread_update.js @@ -119,7 +119,7 @@ function initAutoupdate() { } function getReplyCount() { - return $('.thread').children('.post').length - 1 + return $('.thread').children('.post').length } function getImageCount() { diff --git a/boards/templates/boards/thread.html b/boards/templates/boards/thread.html --- a/boards/templates/boards/thread.html +++ b/boards/templates/boards/thread.html @@ -95,7 +95,7 @@
{% csrf_token %}
-
{% trans "Reply to thread" %} #{{ posts.0.id }}
+
{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}
{% trans 'Title' %}