OSDN Git Service

画像なしカテゴリに対応
authorTaro Matsuzawa aka. btm <btm@tech.email.ne.jp>
Mon, 27 Jun 2011 01:56:50 +0000 (10:56 +0900)
committerTaro Matsuzawa aka. btm <btm@tech.email.ne.jp>
Mon, 27 Jun 2011 01:56:50 +0000 (10:56 +0900)
app/helpers/base_helper.rb
public/images/title_cat00.gif [new file with mode: 0644]

index 707beb5..02f99b0 100644 (file)
@@ -361,7 +361,7 @@ def product_category_image_tag(product)
 end
 
 def category_image_tag(category)
-  default = image_tag('title_cat00.jpg', :alt=>"カテゴリー")
+  default = image_tag('title_cat00.gif', :alt=>"カテゴリー")
   category or return default
   category.resource_id.blank? and return default
   view_resource_id(category.menu_resource_id, :alt=>category.name)
diff --git a/public/images/title_cat00.gif b/public/images/title_cat00.gif
new file mode 100644 (file)
index 0000000..3e53c94
Binary files /dev/null and b/public/images/title_cat00.gif differ