add subtitle word limit
This commit is contained in:
parent
ffbc10f6ef
commit
1df28c21c1
|
@ -133,9 +133,10 @@ class NewsController < ApplicationController
|
|||
"status-class" => "status-#{status['classname']}"
|
||||
}
|
||||
end
|
||||
|
||||
{
|
||||
"title" => HTMLEntities.new.encode(a.title),
|
||||
"subtitle" => a.subtitle,
|
||||
"subtitle" => a.subtitle.truncate(100),
|
||||
"statuses" => statuses,
|
||||
"category" => a.category.title,
|
||||
"postdate" => a.postdate,
|
||||
|
|
Loading…
Reference in New Issue