Sha256: d2f03fd90c7984efc628a78ac746b40add1a01db6c5245878e9272527a7d5b33

Contents?: true

Size: 641 Bytes

Versions: 4

Compression:

Stored size: 641 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
the_sortable_tree-1.2.0 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.1.3 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.1.1 app/views/the_sortable_tree/_controls.html.haml
the_sortable_tree-1.0.0 app/views/the_sortable_tree/_controls.html.haml