Sha256: 3ea04fe0c4a9542d4fcf7e415cc41a7c29352d68d9c977283efae74545178bd2

Contents?: true

Size: 686 Bytes

Versions: 6

Compression:

Stored size: 686 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>
        <%= lookbook_render :prose, content: item.notes %>
      </div>
    <% end %>
  </div>
<% else %>
  <div class="px-4 py-6 bg-lookbook-prose-bg w-full h-full">
    <%= lookbook_render :prose do %>
      <%== items.any? ? items.first.notes : "<em class='opacity-50'>No notes provided.</em>" %>
    <% end %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lookbook-1.3.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.3.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.2.1 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.2.0 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.1.1 app/views/lookbook/previews/panels/_notes.html.erb
lookbook-1.1.0 app/views/lookbook/previews/panels/_notes.html.erb