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 = {}
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
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