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']}"
|
"status-class" => "status-#{status['classname']}"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
{
|
{
|
||||||
"title" => HTMLEntities.new.encode(a.title),
|
"title" => HTMLEntities.new.encode(a.title),
|
||||||
"subtitle" => a.subtitle,
|
"subtitle" => a.subtitle.truncate(100),
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
"category" => a.category.title,
|
"category" => a.category.title,
|
||||||
"postdate" => a.postdate,
|
"postdate" => a.postdate,
|
||||||
|
|
Loading…
Reference in New Issue