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

Version Path
polaris_view_helpers-1.2.11 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.10 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.9 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.8 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.7 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.6 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.5 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.4 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.3 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.2 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.1 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.2.0 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.1.6 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.1.5 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.0.5 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.0.4 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.0.3 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.0.2 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.0.1 test/dummy/app/views/home/_resource_list.html.erb
polaris_view_helpers-1.0.0 test/dummy/app/views/home/_resource_list.html.erb