Sha256: 370cb8b34fc812534b85bae882a481091d9c899f7d90346ff5f9066494ab0504

Contents?: true

Size: 578 Bytes

Versions: 12

Compression:

Stored size: 578 Bytes

Contents

-# EDIT
- edit = link_to '', polymorphic_url(opts[:namespace] + [node], :action => :edit), :title => t('.edit_this'), :class => 'button edit'
-# DELETE
- if opts[:has_children]
  - delete =  link_to('', url_for(opts[:namespace] + [node]),
    :title    =>  t('.delete'),
    :method   =>  :delete,
    :confirm  =>  t('.delete_confirm'),
    :class    =>  'button delete')
- else
  - delete =  link_to('', '#',
    :title    =>  t('.cant_be_deleted'),
    :onclick  =>  "alert('#{t('.delete_nested_elements')}')",
    :class    =>  'button undeleted')
-# OUTPUT
= edit + delete

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
the_sortable_tree_mongoid-1.8.5.1 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree_mongoid-1.8.5 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.9.3 app/views/sortable/base/_controls.html.haml
the_sortable_tree-1.9.2 app/views/sortable/base/_controls.html.haml
the_sortable_tree-1.9.1 app/views/sortable/base/_controls.html.haml
the_sortable_tree-1.9.0 app/views/sortable/base/_controls.html.haml
the_sortable_tree-1.8.6 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.8.5 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.8.0 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.7.1 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.7.0 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.6.0 app/views/the_sortable_tree/_controls.html.haml