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