OSDN Git Service

merge v06sheet
[pettanr/pettanr.git] / app / helpers / application_helper.rb
index a63fee4..2ad8c17 100644 (file)
@@ -27,7 +27,7 @@ module ApplicationHelper
   def icon_tag name, opt = {}
     title = opt[:object] ? (name.to_s + ' ID:' + opt[:object].id.to_s) : name
     size = opt[:size] ? opt[:size].to_i : 35
-    tag :img, :src => asset_path(name.to_s.downcase + '.gif'), :width => size, :height => size, :alt => name.to_s + ' Icon', :title => title
+    tag :img, :src => asset_path(name.to_s.underscore + '.gif'), :width => size, :height => size, :alt => name.to_s + ' Icon', :title => title
   end
   
   def author_icon opt = {}
@@ -38,6 +38,14 @@ module ApplicationHelper
     icon_tag :Artist, opt
   end
   
+  def scroll_icon opt = {}
+    icon_tag :Scroll, opt
+  end
+  
+  def scroll_panel_icon opt = {}
+    icon_tag :ScrollPanel, opt
+  end
+  
   def comic_icon opt = {}
     icon_tag :Comic, opt
   end
@@ -46,6 +54,18 @@ module ApplicationHelper
     icon_tag :Story, opt
   end
   
+  def story_sheet_icon opt = {}
+    icon_tag :StorySheet, opt
+  end
+  
+  def sheet_icon opt = {}
+    icon_tag :Sheet, opt
+  end
+  
+  def sheet_panel_icon opt = {}
+    icon_tag :Sheet, opt
+  end
+  
   def panel_icon opt = {}
     icon_tag :Panel, opt
   end