Sha256: 970133ab01429862dcb4294d3db5776fb67f84f908d0fdc0d8d7908c8608001b

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

- if uses.any?
  %h3 Used In
  %ul.uses_of
    - uses.each do |use|
      :ruby
        amount_plus_prep = [use.quantity_with_unit.presence, use.preparation.presence].compact.join(', ')
        details = [amount_plus_prep.presence, use.note.presence].compact.join(': ')
      %li.use_of
        = link_to use.use_in.name, use.use_in
        - if details.present?
          (#{details})

Version data entries

7 entries across 7 versions & 1 rubygems

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