Fixed reply number for topic#show
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user