From b2825bd03edbe5bfcce626f87759f27df2e0c7b3 Mon Sep 17 00:00:00 2001 From: default_git_name Date: Fri, 25 Jan 2013 19:29:34 +0000 Subject: [PATCH] Set displayed post number to topics reply number --- app/views/topics/show.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 3a65f70..38c68d6 100755 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -10,12 +10,14 @@
+ <% i = 0 %> <% @posts.each do |post| %> - <% if !post.user.blank? %> + <% i += 1 %> + <% if !post.user.blank? %>