small fix
This commit is contained in:
parent
f9ecd7d486
commit
1b5830d910
|
@ -93,7 +93,7 @@ class EPapersController < ApplicationController
|
||||||
|
|
||||||
def widget
|
def widget
|
||||||
tags = OrbitHelper.widget_tags
|
tags = OrbitHelper.widget_tags
|
||||||
papers = Paper.filter_by_widget_categories.filter_by_tags(tags).collect.desc(:period) do |paper|
|
papers = Paper.filter_by_widget_categories.filter_by_tags(tags).desc(:period).collect do |paper|
|
||||||
paper_thumb = !paper.image.nil? && !paper.image.url.nil? ? paper.image.thumb.url : "http://www.placehold.it/400x400/EFEFEF/AAAAAA"
|
paper_thumb = !paper.image.nil? && !paper.image.url.nil? ? paper.image.thumb.url : "http://www.placehold.it/400x400/EFEFEF/AAAAAA"
|
||||||
{
|
{
|
||||||
"title" => paper.title,
|
"title" => paper.title,
|
||||||
|
|
Loading…
Reference in New Issue