From 554d744929924ac37e1ca585906256ef3baad6c9 Mon Sep 17 00:00:00 2001
From: chenmin <19763783@qq.com>
Date: Fri, 22 Aug 2014 09:18:45 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE=E5=92=8C?=
=?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=AE=A8=E8=AE=BA=E5=8C=BA=E6=89=80=E6=9C=89?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E6=98=BE=E7=A4=BA=E9=A1=B5=E9=9D=A2=E5=90=84?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85=E5=AE=B9=E6=B2=A1=E5=AF=B9=E9=BD=90?=
=?UTF-8?q?=E7=9A=84bug=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/boards/_course_show.html.erb | 4 +++-
app/views/boards/_project_show.html.erb | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb
index 25d35d407..ca33b7516 100644
--- a/app/views/boards/_course_show.html.erb
+++ b/app/views/boards/_course_show.html.erb
@@ -63,7 +63,9 @@
- <%= link_to h(topic.subject), board_message_path(@board, topic) %> |
+ <%= link_to h(topic.subject.truncate(40,ommision:'...')), board_message_path(@board, topic),title: topic.subject.to_s %>
+ |
<%=link_to (topic.replies_count), board_message_path(@board, topic) %> |
回答 |
|
diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb
index 1327f13e9..ef1afd27e 100644
--- a/app/views/boards/_project_show.html.erb
+++ b/app/views/boards/_project_show.html.erb
@@ -71,7 +71,9 @@
- <%= link_to h(topic.subject), board_message_path(@board, topic) %> |
+ <%= link_to h(topic.subject.truncate(40,ommision:'...')), board_message_path(@board, topic),title:topic.subject.to_s %>
+ |
| | |