Minor improvements to task show view.
This commit is contained in:
parent
d0e04a05ec
commit
cf9fa69ac2
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- @task.assignments.each do |ass|
|
||||
= ass.user.nick
|
||||
%small= link_to icon(:delete), {:action => "drop_assignment", :id => ass}, :confirm => 'Bist du sicher?', :method => "post"
|
||||
%br/
|
||||
%small= link_to icon(:delete, :title => "#{ass.user.nick} entfernen"), |
|
||||
{:action => "drop_assignment", :id => ass}, |
|
||||
:confirm => 'Bist du sicher?', :method => "post" |
|
||||
|
|
Loading…
Reference in a new issue