Sha256: c5ca9d0d979361fed689d73ebb8708a776d318c11fbeaa76465c9d5734ec2093

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 Bytes

Contents

- usables.each do |usable|
  - if usable.uses.any?
    %h3= usable.title
    %ul.used_in{class: usable.plural_class}
      - usable.uses.each do |use|
        %li.use_in{class: usable.singular_class}
          #{use.quantity_with_unit}
          - if use.preparation.present?
            = succeed ', ' do
              = link_to use.use_of.name, use.use_of
            = use.preparation
          - else
            = link_to use.use_of.name, use.use_of
          - if use.note.present?
            (#{use.note})

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cookbook-0.1.6 app/views/cookbook/_used_in.html.haml
cookbook-0.1.5 app/views/cookbook/_used_in.html.haml
cookbook-0.1.4 app/views/cookbook/_used_in.html.haml
cookbook-0.1.3 app/views/cookbook/_used_in.html.haml
cookbook-0.1.2 app/views/cookbook/_used_in.html.haml
cookbook-0.1.1 app/views/cookbook/_used_in.html.haml
cookbook-0.1.0 app/views/cookbook/_used_in.html.haml