fixed show url
This commit is contained in:
parent
3f73010279
commit
f2301e7506
|
@ -9,7 +9,9 @@ class EPapersController < ApplicationController
|
||||||
"description" => topic.description,
|
"description" => topic.description,
|
||||||
"img_url" => topic.image.url,
|
"img_url" => topic.image.url,
|
||||||
"img_url_thumb" => topic.image.thumb.url,
|
"img_url_thumb" => topic.image.thumb.url,
|
||||||
"category" => topic.category.title
|
"category" => topic.category.title,
|
||||||
|
"category_title" => topic.category.title,
|
||||||
|
"publish_date" => topic.period
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
@ -105,7 +107,7 @@ class EPapersController < ApplicationController
|
||||||
{
|
{
|
||||||
"title" => criteria.title,
|
"title" => criteria.title,
|
||||||
"description" => criteria.description,
|
"description" => criteria.description,
|
||||||
"link_to_show" => OrbitHelper.url_to_show(criteria.to_param) + "?method=topics"
|
"link_to_show" => OrbitHelper.widget_item_url(criteria.to_param) + "?method=topics"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
@ -123,11 +125,12 @@ class EPapersController < ApplicationController
|
||||||
data = topics.collect do |topic|
|
data = topics.collect do |topic|
|
||||||
{
|
{
|
||||||
"title" => topic.title,
|
"title" => topic.title,
|
||||||
"link_to_show" => OrbitHelper.url_to_show(topic.to_param),
|
"link_to_show" => OrbitHelper.widget_item_url(topic.to_param),
|
||||||
"description" => topic.description,
|
"description" => topic.description,
|
||||||
"img_url" => topic.image.url,
|
"img_url" => topic.image.url,
|
||||||
"img_url_thumb" => topic.image.thumb.url,
|
"img_url_thumb" => topic.image.thumb.url,
|
||||||
"category" => topic.category.title
|
"category" => topic.category.title,
|
||||||
|
"link_to_show_wise" => OrbitHelper.widget_more_url + "/" + topic.to_param
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
@ -146,7 +149,7 @@ class EPapersController < ApplicationController
|
||||||
topics_data = topics.collect do |topic|
|
topics_data = topics.collect do |topic|
|
||||||
{
|
{
|
||||||
"title" => topic.title,
|
"title" => topic.title,
|
||||||
"link_to_show" => OrbitHelper.url_to_show(topic.to_param),
|
"link_to_show" => OrbitHelper.widget_item_url(topic.to_param),
|
||||||
"description" => topic.description,
|
"description" => topic.description,
|
||||||
"img_url" => topic.image.url,
|
"img_url" => topic.image.url,
|
||||||
"img_url_thumb" => topic.image.thumb.url,
|
"img_url_thumb" => topic.image.thumb.url,
|
||||||
|
@ -174,7 +177,7 @@ class EPapersController < ApplicationController
|
||||||
topics_data = topics.collect do |topic|
|
topics_data = topics.collect do |topic|
|
||||||
{
|
{
|
||||||
"title" => topic.title,
|
"title" => topic.title,
|
||||||
"link_to_show" => OrbitHelper.url_to_show(topic.to_param),
|
"link_to_show" => OrbitHelper.widget_item_url(topic.to_param),
|
||||||
"description" => topic.description,
|
"description" => topic.description,
|
||||||
"img_url" => topic.image.url,
|
"img_url" => topic.image.url,
|
||||||
"img_url_thumb" => topic.image.thumb.url,
|
"img_url_thumb" => topic.image.thumb.url,
|
||||||
|
|
Loading…
Reference in New Issue