Sha256: 9fb33e23f47aefcd4c090109c32a47734e58806ca18020b4ea39483514658939

Contents?: true

Size: 543 Bytes

Versions: 9

Compression:

Stored size: 543 Bytes

Contents

<% if scenarios.many? %>
  <% scenarios = scenarios.filter(&:visible?) %>
  <%# Render a group of scenarios %>
  <% scenarios.each do |scenario| %>
    <div style="margin-bottom: 30px !important; display: block !important;">
      <h6 style="all: unset; display: block; color: #555; font-family: sans-serif; font-size: 14px; margin-top: 0; margin-bottom: 10px;">
        <%= scenario.label %>
      </h6>
      <%= scenario.output %>
    </div>
  <% end %>
<% else %>
  <%# Render a single scenario %>
  <%= scenarios.first.output %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/views/lookbook/previews/group.html.erb
lookbook-2.3.3 app/views/lookbook/previews/group.html.erb
lookbook-2.3.2 app/views/lookbook/previews/group.html.erb
lookbook-2.3.0 app/views/lookbook/previews/group.html.erb
lookbook-2.2.2 app/views/lookbook/previews/group.html.erb
lookbook-2.2.1 app/views/lookbook/previews/group.html.erb
lookbook-2.2.0 app/views/lookbook/previews/group.html.erb
lookbook-2.1.1 app/views/lookbook/previews/group.html.erb
lookbook-2.1.0 app/views/lookbook/previews/group.html.erb