Sha256: 4ab011587924d1f322ca7188a9aac8700458cbcb0649b491ca14a8ef6655c540
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
<%= list.define :item do |options| %> <%= options[:field] ? options[:record].send(:field) : options[:record].to_s %> <% end %> <%= list.define :items do |options| %> <% if records %> <% records.each do |record| %> <%= content_tag :li, options[:item_html] do %> <%= list.use :item, :record => record %> <% end %> <% end %> <% else %> <% list.items.each do |item| %> <%= content_tag :li, options.merge(item.options)[:item_html] do %> <%= list.use item.name %> <% end %> <% end %> <% end %> <% end %> <% list.items.each do |item| %> <%= list.define item.name, :item => item do |options| %> <%= item.name %> <% end %> <% end %> <%= list.use :list do |options| %> <%= content_tag :ul, options[:list_html] do %> <%= list.use :items %> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blocks-1.1.2 | app/views/blocks/_list.html.erb |