def issue_status_img_for i, opts={}
fn, title = if i.closed?
case i.disposition
when :fixed; ["green-check.png", "fixed"]
when :wontfix; ["red-check.png", "won't fix"]
when :reorg; ["blue-check.png", "reorganized"]
end
elsif i.in_progress?
["green-bar.png", "in progress"]
elsif i.paused?
["yellow-bar.png", "paused"]
end
return "" unless fn
args = {:src => fn, :alt => title, :title => title}
args[:class] = opts[:class] if opts[:class]
"<img " + args.map { |k, v| "#{k}=#{v.inspect}" }.join(" ") + "/>"
end