Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created February 15, 2009 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtimberman/64840 to your computer and use it in GitHub Desktop.
Save jtimberman/64840 to your computer and use it in GitHub Desktop.
/usr/lib/ruby/gems/1.8/gems/chef-server-0.5.4/lib/views/nodes/index.html.haml
- throw_content(:header, "Node List")
%table
- @node_list.each do |node|
%tr
%td
.node
%a{ :href => url(:node, { :id => node.gsub(/\./, "_") }) }
= node
%td
- if session[:level] == :admin
= delete_button url(:node, { :id => node.gsub(/\./, "_") }), "Delete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment