Sha256: d59468a200ae02d20129f4b343b7ad6d608ff0cd62942030a7e19f350ce24191

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

<li class='node'><%= (node.leaf? ? node.name.pluralize : node.name).capitalize %>
<span>
  <%= link_to 'Add', new_qwerty_admin_node_path(:parent_id => node.id) %>
  <%= link_to 'Up', up_qwerty_admin_node_path(node) unless node.last? %>
  <%= link_to 'Down', down_qwerty_admin_node_path(node) unless node.first? %>
  <%= link_to 'Edit', edit_qwerty_admin_node_path(node) %>
  <%= link_to 'Delete', qwerty_admin_node_path(node), :method => :delete, :confirm => 'Are you sure?' %>
  <%= node.position %>
</span>
<% unless node.leaf? %>
  <ol class="nodes">
    <%= render :partial => node.children %>
  </ol>
<% end %>
</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qwerty-0.0.7.pre app/views/qwerty_admin/nodes/_node.html.erb
qwerty-0.0.5.pre app/views/qwerty_admin/nodes/_node.html.erb
qwerty-0.0.4.pre app/views/qwerty_admin/nodes/_node.html.erb
qwerty-0.0.3.pre app/views/qwerty_admin/nodes/_node.html.erb