Minor improvements to task show view.

This commit is contained in:
Benjamin Meichsner 2009-10-16 21:06:55 +02:00
parent d0e04a05ec
commit cf9fa69ac2
2 changed files with 5 additions and 3 deletions

View file

@ -123,8 +123,9 @@ module ApplicationHelper
def icon(name, options={})
icons = { :delete => { :file => 'b_drop.png', :alt => 'Löschen'},
:edit => { :file => 'b_edit.png', :alt => 'Bearbeiten'}}
options[:alt] ||= icons[name][:alt]
options[:title] ||= icons[name][:title]
options.merge!({:size => '16x16',:border => "0"})
options.merge!({:alt => icons[name][:alt], :title => icons[name][:alt]}) unless options[:alt]
image_tag icons[name][:file], options
end