Sha256: 7aa215056e353f3cc6684fa5e0b17e0f4fe3a4364ebe0ce9227ba6334ac82d6f
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
<% items = examples.select { |example| example.notes.present? } %> <% if items.many? %> <div class="divide-y divide-dashed divide-lookbook-divider bg-lookbook-prose 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="p-4 bg-lookbook-prose 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
3 entries across 3 versions & 1 rubygems