Sha256: e63dd8b7fc597c8606da77e9f846e93c9c6d47f79a99b74de57113da657b9b23
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
.block#block-tables .content %h2.title Node List .inner = partial('navigation', :active => 'index') .content .inner %table.table %tr %th.first{:colspan => 2} Name %th %th.last - even = false - if @node_list.empty? %td{:colspan => 4}= "You appear to have no nodes - try connecting one, or validating an existing #{link_to('registration', slice_url(:registrations))}" - else - @node_list.each do |node| %tr{:class => even ? "even": "odd" } %td{:colspan => 2}= link_to node, slice_url(:node, { :id => escape_node_id(node) } ) %td = link_to('Edit', slice_url(:edit_node, escape_node_id(node))) | = link_to('Delete', slice_url(:node, escape_node_id(node)), :method => "delete", :confirm => "Really delete Node #{node}? There is no undo.") - even ? even = false: even = true
Version data entries
4 entries across 4 versions & 1 rubygems