blob: d8e9eabda6421dc6c3b8c206bd21cac68dbc9bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
|
.block#block-tables
.content
%h2.title Cookbooks
.inner
%table.table
%tr
%th.first Cookbook Name
- @cl.sort{ |a,b| a.name.to_s <=> b.name.to_s }.each_with_index do |cookbook, index|
%tr{:class => "#{index % 2 == 1 ? 'odd' : 'even'}"}
%td= link_to cookbook.name, slice_url(:cookbook, { :id => cookbook.name })
|