def type_default view, item, operators
if item.own? operators
- view.link_to tag(:img, :src => view.asset_path('edit.png'), :width => 32, :height => 32),
+ view.link_to view.tag(:img, :src => view.asset_path('edit.png'), :width => 32, :height => 32),
view.polymorphic_path(item, :action => :edit)
- view.link_to tag(:img, :src => view.asset_path('remove.png'), :width => 32, :height => 32),
+ view.link_to view.tag(:img, :src => view.asset_path('remove.png'), :width => 32, :height => 32),
item, confirm: 'Are you sure?', :method => :delete
end
end