Set displayed post number to topics reply number

This commit is contained in:
default_git_name
2013-01-25 19:29:34 +00:00
parent 7da52114ca
commit b2825bd03e

View File

@@ -10,12 +10,14 @@
</span> </span>
</div> </div>
<div> <div>
<% i = 0 %>
<table> <table>
<% @posts.each do |post| %> <% @posts.each do |post| %>
<% i += 1 %>
<% if !post.user.blank? %> <% if !post.user.blank? %>
<tr> <tr>
<td class="post_author" rowspan="2"> <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="name"><%= post.user.username %></span>
<span class="avatar"><%= image_tag post.user.gravatar_url %></span> <span class="avatar"><%= image_tag post.user.gravatar_url %></span>
<span class="info smaller"> <span class="info smaller">