From 35745f3e6e952d25c5d590d125ff07aa121e6e25 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 17 Dec 2013 21:26:34 +0800 Subject: [PATCH] . --- app/views/memos/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index af02df499..6c5aae172 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -45,7 +45,7 @@

<%= l(:label_reply_plural) %> (<%= @replies.nil? ? 0 : @replies.size %>)

- <% pages_count = (params['page'].to_i - 1) < 0 ? 0 : ((params['page'].to_i - 1) * 10) %> + <% pages_count = @reply_pages.offset %> <% @replies.each do |reply| %>
">

<%= pages_count += 1 %>楼 :