Some fixes of bugs during last commit.

This commit is contained in:
Benjamin Meichsner 2009-01-15 20:10:50 +01:00
parent e8d55e50c0
commit 7ff0467b16
6 changed files with 21 additions and 16 deletions

View file

@ -11,7 +11,7 @@ module MessagesHelper
groups
end
def format_subject(message)
truncate "<b>#{link_to(h(message.subject), message)}</b> <span style='color:grey'>#{h(message.body)}</span>", :length => 200
def format_subject(message, length)
truncate "<b>#{link_to(h(message.subject), message)}</b> <span style='color:grey'>#{h(message.body)}</span>", :length => length
end
end