Sha256: bcbedfb079a4c8292e0b196165047846ea7e93ebc4e34a78bcc50cc72527619b

Contents?: true

Size: 674 Bytes

Versions: 14

Compression:

Stored size: 674 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="p-4 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="p-4 w-full h-full bg-lookbook-prose-bg">
    <%= lookbook_render :prose do %>
      <%== items.any? ? items.first.notes : "<em class='opacity-50'>No notes provided.</em>" %>
    <% end %>
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.5.4 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.5.3 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.5.2 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.5.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.5.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.4.5 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.4.4 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.4.3 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.4.2 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.4.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.4.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.3.4 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-1.3.3 app/views/lookbook/inspector/panels/_notes.html.erb