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