Sha256: 259932589f777f40cce74175ef0d63d497265175057fbe78f232624127808a09
Contents?: true
Size: 676 Bytes
Versions: 2
Compression:
Stored size: 676 Bytes
Contents
<% items = examples.filter { |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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.beta.2 | app/views/lookbook/previews/panels/_notes.html.erb |
lookbook-1.0.0.beta.1 | app/views/lookbook/previews/panels/_notes.html.erb |