fix for default image

This commit is contained in:
Harry Bomrah 2015-03-10 18:26:43 +08:00
parent d0e9ffbf39
commit cd5de45183
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class AnnouncementsController < ApplicationController
"postdate" => a.postdate, "postdate" => a.postdate,
"author" => author, "author" => author,
"link_to_show" => OrbitHelper.url_to_show(a.to_param), "link_to_show" => OrbitHelper.url_to_show(a.to_param),
"img_src" => a.image.thumb.url || "http://placehold.it/100x100", "img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
"img_description" => a.image_description, "img_description" => a.image_description,
"more" => t(:more_plus), "more" => t(:more_plus),
"view_count" => a.view_count "view_count" => a.view_count