fixed show url
This commit is contained in:
parent
3f73010279
commit
f2301e7506
|
@ -9,7 +9,9 @@ class EPapersController < ApplicationController
|
|||
"description" => topic.description,
|
||||
"img_url" => topic.image.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
|
||||
{
|
||||
|
@ -105,7 +107,7 @@ class EPapersController < ApplicationController
|
|||
{
|
||||
"title" => criteria.title,
|
||||
"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
|
||||
{
|
||||
|
@ -123,11 +125,12 @@ class EPapersController < ApplicationController
|
|||
data = topics.collect do |topic|
|
||||
{
|
||||
"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,
|
||||
"img_url" => topic.image.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
|
||||
{
|
||||
|
@ -146,7 +149,7 @@ class EPapersController < ApplicationController
|
|||
topics_data = topics.collect do |topic|
|
||||
{
|
||||
"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,
|
||||
"img_url" => topic.image.url,
|
||||
"img_url_thumb" => topic.image.thumb.url,
|
||||
|
@ -174,7 +177,7 @@ class EPapersController < ApplicationController
|
|||
topics_data = topics.collect do |topic|
|
||||
{
|
||||
"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,
|
||||
"img_url" => topic.image.url,
|
||||
"img_url_thumb" => topic.image.thumb.url,
|
||||
|
|
Loading…
Reference in New Issue