Sha256: cf63d0fed4bb7c694fda171e59d1ca91d6f5cc487119973f0d7841fa8bbb17ae

Contents?: true

Size: 688 Bytes

Versions: 13

Compression:

Stored size: 688 Bytes

Contents

<% items = examples.select { |example| example.notes.present? } %>
<% if items.many? %>
  <div class="divide-y divide-dashed divide-lookbook-divider bg-lookbook-prose-bg h-full w-full">
    <% items.each do |item| %>
      <div class="px-4 py-6 relative">
        <h6 class="italic font-mono mb-4 opacity-40">
          # <%= item.label %>
        </h6>
        <%= render_component :prose, content: item.notes %>
      </div>
    <% end %>
  </div>
<% else %>
  <div class="px-4 py-6 bg-lookbook-prose-bg w-full h-full">
    <%= render_component :prose do %>
      <%== items.any? ? items.first.notes : "<em class='opacity-50'>No notes provided.</em>" %>
    <% end %>
  </div>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lookbook-1.0.8 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.7 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.6 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.5 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.4 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.3 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.2 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.1 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.0 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.0.rc.3 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.0.rc.2 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.0.rc.1 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.0.0.beta.8 app/views/lookbook/previews/panels/_notes.html.erb