Sha256: fbbca679d76e3f826c6617c34e7b0f52ee7e62252e8791d97372f2d9396eb4fb
Contents?: true
Size: 799 Bytes
Versions: 20
Compression:
Stored size: 799 Bytes
Contents
<% @widgets = [ Widget.new(title: "Widget One"), Widget.new(title: "Widget Two") ] %> <%= polaris_resource_list do %> <% @widgets.each do |widget| %> <%= polaris_resource_list_item({ url: root_path, media: polaris_thumbnail(src: "/product.jpg", alt: widget.title), attribute_one: widget.title, attribute_two: nil, attribute_three: nil, badges: [ polaris_badge("A badge") ] }) %> <% end %> <%= polaris_resource_list_item({ url: root_path, media: polaris_thumbnail(src: nil, alt: "Some alt text"), attribute_one: "Resource Item Title", attribute_two: "Another attribute", attribute_three: "Third Attribute", badges: [ polaris_badge("A different badge") ] }) %> <% end %>
Version data entries
20 entries across 20 versions & 1 rubygems