This commit is contained in:
yanxd 2013-12-17 21:26:34 +08:00
parent c06b4f2704
commit 35745f3e6e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
</div>
<div class="replies">
<h3 class="comments"><%= l(:label_reply_plural) %> (<%= @replies.nil? ? 0 : @replies.size %>)</h3>
<% pages_count = (params['page'].to_i - 1) < 0 ? 0 : ((params['page'].to_i - 1) * 10) %>
<% pages_count = @reply_pages.offset %>
<% @replies.each do |reply| %>
<div class="reply" id="<%= "reply-#{reply.id}" %>">
<p class="font_lighter"><%= pages_count += 1 %>楼 :</p>