Class: Releaf::Content::Nodes::ToolboxBuilder
- Inherits:
-
Builders::ToolboxBuilder
- Object
- Builders::ToolboxBuilder
- Releaf::Content::Nodes::ToolboxBuilder
- Defined in:
- app/builders/releaf/content/nodes/toolbox_builder.rb
Instance Method Summary collapse
- #add_child_button ⇒ Object
- #copy_button ⇒ Object
- #go_to_button ⇒ Object
- #items ⇒ Object
- #move_button ⇒ Object
Instance Method Details
#add_child_button ⇒ Object
16 17 18 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 16 def (t('Add child'), nil, class: "ajaxbox", href: url_for(action: "content_type_dialog", parent_id: resource.id)) end |
#copy_button ⇒ Object
24 25 26 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 24 def (t('Copy'), nil, class: "ajaxbox", href: url_for(action: "copy_dialog", id: resource.id)) end |
#go_to_button ⇒ Object
20 21 22 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 20 def (t('Go to'), nil, class: "ajaxbox", href: url_for(action: "go_to_dialog")) end |
#items ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 3 def items list = [] unless resource.new_record? list << list << unless params[:context] == "index" list << list << end list + super end |
#move_button ⇒ Object
28 29 30 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 28 def (t('Move'), nil, class: "ajaxbox", href: url_for(action: "move_dialog", id: resource.id)) end |