diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index 03f6a0158866b52e875d80a3dc94ead574de9c7e..422097d1d2b3274e074b65a83e2abad22969532f 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -19,12 +19,15 @@ module DashboardHelper end def dashboard_feed_title(object) - title = case object.class.name.to_s + klass = object.class.to_s.split("::").last + + title = case klass when "Note" then markdown(object.note) when "Issue" then object.title - when "Grit::Commit" then object.safe_message + when "Commit" then object.safe_message else return "Project Wall" end - "[#{object.class.name}] #{truncate(sanitize(title, :tags => []), :length => 60)} " + + "[#{klass}] #{truncate(sanitize(title, :tags => []), :length => 60)} " end end