Fixed reply number for topic#show

This commit is contained in:
2013-01-26 02:16:09 -05:00
parent b2825bd03e
commit f3ef2292ae

View File

@@ -11,13 +11,14 @@
</div>
<div>
<% i = 0 %>
<% i += (params[:page].to_i - 1 ) * 10 if params[:page] %>
<table>
<% @posts.each do |post| %>
<% i += 1 %>
<% if !post.user.blank? %>
<% if !post.user.blank? %>
<tr>
<td class="post_author" rowspan="2">
<a name="<%= post.id %>"> <%= link_to ("#"+ i.id.to_s ), post %> </a>
<a name="<%= post.id %>"> <%= link_to ("#"+ i.to_s ), post %> </a>
<span class="name"><%= post.user.username %></span>
<span class="avatar"><%= image_tag post.user.gravatar_url %></span>
<span class="info smaller">