Sha256: 130c6ca8ea9b3a30c2e2e7bfab7cd9fc5340e993b8c82f7cc4479fffd983cad2

Contents?: true

Size: 677 Bytes

Versions: 28

Compression:

Stored size: 677 Bytes

Contents

<% items = scenarios.select { |scenario| scenario.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

28 entries across 28 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.3.3 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.3.2 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.3.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.2.2 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.2.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.2.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.1.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.1.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.5 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.4 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.3 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.2 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.0 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.0.rc.3 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.0.rc.2 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.0.rc.1 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.0.beta.9 app/views/lookbook/inspector/panels/_notes.html.erb
lookbook-2.0.0.beta.8 app/views/lookbook/inspector/panels/_notes.html.erb