app/views/roles/index.html.haml in chef-server-webui-0.8.16 vs app/views/roles/index.html.haml in chef-server-webui-0.9.0.a3
- old
+ new
@@ -11,11 +11,11 @@
%th
%th.last
- even = false;
- @role_list.each do |role|
%tr{ :class => even ? "even" : "odd" }
- %td{:colspan => 2}= link_to(role[0], slice_url(:role, role[0]))
+ %td{:colspan => 2}= link_to(role[0], url(:role, role[0]))
%td
- = link_to('Edit', slice_url(:edit_role, role[0]))
+ = link_to('Edit', url(:edit_role, role[0]))
|
- = link_to('Delete', slice_url(:role, role[0]), :method => "delete", :confirm => "Really delete Role #{role[0]}? there is no undo.")
- - even ? even = false: even = true
+ = link_to('Delete', url(:role, role[0]), :method => "delete", :confirm => "Really delete Role #{role[0]}? there is no undo.")
+ - even = (not even)