Set displayed post number to topics reply number
This commit is contained in:
@@ -10,12 +10,14 @@
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<% i = 0 %>
|
||||
<table>
|
||||
<% @posts.each do |post| %>
|
||||
<% i += 1 %>
|
||||
<% if !post.user.blank? %>
|
||||
<tr>
|
||||
<td class="post_author" rowspan="2">
|
||||
<a name="<%= post.id %>"> <%= link_to ("#"+ post.id.to_s ), post %> </a>
|
||||
<a name="<%= post.id %>"> <%= link_to ("#"+ i.id.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