From c05b1f5959d7f7664ac6e6b424aa93e8c44a6395 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Wed, 23 Sep 2015 09:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BA=E5=9D=9B=E5=B8=96=E5=AD=90=20?= =?UTF-8?q?=E5=92=8C=E5=9B=9E=E5=A4=8D=20=E8=AE=A1=E7=AE=97=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/_forum_list.html.erb | 4 ++-- app/views/forums/index.html.erb | 2 +- app/views/layouts/base_forums.html.erb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/forums/_forum_list.html.erb b/app/views/forums/_forum_list.html.erb index a17314173..fbbe023a0 100644 --- a/app/views/forums/_forum_list.html.erb +++ b/app/views/forums/_forum_list.html.erb @@ -17,7 +17,7 @@
- <%= link_to (forum.memo_count), forum_path(forum),:class=>"linkGrey5 fb" %> + <%= link_to ( forum.topic_count), forum_path(forum),:class=>"linkGrey5 fb" %>
帖子
@@ -25,7 +25,7 @@
- <%= link_to (forum.topic_count), forum_path(forum),:class=>"linkGrey5 fb" %> + <%= link_to (forum.memo_count), forum_path(forum),:class=>"linkGrey5 fb" %>
回答
diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb index aeb0e1654..429be7ff0 100644 --- a/app/views/forums/index.html.erb +++ b/app/views/forums/index.html.erb @@ -150,7 +150,7 @@ <%= render :partial => 'forum_list',:locals => {:forums=>@forums}%>
diff --git a/app/views/layouts/base_forums.html.erb b/app/views/layouts/base_forums.html.erb index 703d9b616..855d9031c 100644 --- a/app/views/layouts/base_forums.html.erb +++ b/app/views/layouts/base_forums.html.erb @@ -95,7 +95,7 @@
"><%= @forum.name%>
吧主:<%= @forum.creator.name%>
-
回答:<%= @forum.topic_count%> 帖子:<%= @forum.memo_count%>
+
回答:<%= @forum.memo_count %> 帖子:<%=@forum.topic_count%>
<%= @forum.description%>