Sha256: 052d08e0179a759866a707861dd2fcf238170fd7abd3b6b7e91243025d3cdb2b

Contents?: true

Size: 682 Bytes

Versions: 26

Compression:

Stored size: 682 Bytes

Contents

<%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes) do |list| %>
  <% items.each do |item| %>
    <% if item.linked? %>
      <%= render Ariadne::BaseComponent.new(tag: :li, classes: item.classes, attributes: item.attributes) do %>
        <%= render Ariadne::LinkComponent.new(href: item.link[:href], classes: item.link[:classes], attributes: item.link[:attributes]) do %>
          <%= item.entry %>
        <% end %>
      <% end %>
    <% else %>
      <%= render Ariadne::BaseComponent.new(tag: :li, classes: item.classes, attributes: item.attributes) do %>
        <%= item.entry %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.12 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.12-x86_64-linux app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.12-x86_64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.12-x64-mingw32 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.12-x64-mingw-ucrt app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.12-arm64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.12-aarch64-linux app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11-x86_64-linux app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11-x86_64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11-x64-mingw32 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11-x64-mingw-ucrt app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11-arm64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.11-aarch64-linux app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.10 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.10-x86_64-linux app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.10-x86_64-darwin app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.10-x64-mingw32 app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.10-x64-mingw-ucrt app/components/ariadne/list_component.html.erb
ariadne_view_components-0.0.10-arm64-darwin app/components/ariadne/list_component.html.erb