From 08de6612cb4cd92f28bdcd9e633d77435e08de5f Mon Sep 17 00:00:00 2001 From: nccu Date: Tue, 11 Nov 2014 16:31:16 +0800 Subject: [PATCH] update default image --- app/controllers/news_controller.rb | 4 ++-- app/views/admin/news/_form.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index b51962c..af605c0 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -74,7 +74,7 @@ class NewsController < ApplicationController "category" => a.category.title, "postdate" => a.postdate.strftime('%Y-%m-%d'), "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/news_default_image.jpg", "more" => t(:more_plus) } end @@ -124,7 +124,7 @@ class NewsController < ApplicationController "category" => a.category.title, "postdate" => a.postdate, "link_to_show" => OrbitHelper.widget_item_url(a.to_param), - "img_src" => a.image.thumb.url || "http://placehold.it/100x100", + "img_src" => a.image.thumb.url || "/assets/news_default_image.jpg", } end { diff --git a/app/views/admin/news/_form.html.erb b/app/views/admin/news/_form.html.erb index f400c19..a0c902d 100644 --- a/app/views/admin/news/_form.html.erb +++ b/app/views/admin/news/_form.html.erb @@ -127,7 +127,7 @@ <% if @news_bulletin.image.file %> <%= image_tag @news_bulletin.image %> <% else %> - + <% end %>
@@ -147,7 +147,7 @@

- ※<%= t("ad.widget_info_for_ad_image_size", :best_size=> "290px x 150px") %> + ※<%= t("ad.widget_info_for_ad_image_size", :best_size=> "( 200px x 100px )") %>
※<%= t("news.image_size_limit")%>