Sha256: f223dcbe6e427f688fbc00167add903449905fd081ec900b86916d929af658da
Contents?: true
Size: 936 Bytes
Versions: 31
Compression:
Stored size: 936 Bytes
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 creating or editing a #{link_to('client', url(:clients))}" - else - @node_list.each do |node| %tr{:class => even ? "even": "odd" } %td{:colspan => 2}= link_to node, url(:node, { :id => node } ) %td = link_to('Edit', url(:edit_node, node)) | = link_to('Delete', url(:node, node), :method => "delete", :confirm => "Really delete Node #{node}? There is no undo.") - even = (not even)
Version data entries
31 entries across 31 versions & 1 rubygems