.card
  .card-header
    %h5.card-title Find #{crop.name} seeds
  - if crop.seeds.empty?
    .card-body
      %p There are no seeds available to trade on Growstuff right now.
  - else
    %ul.list-group
      - crop.seeds.tradable.each do |seed|
        %li.list-group-item
          = link_to "#{seed.owner} will trade #{seed.tradable_to}.", seed_path(seed)
          = render 'members/location', member: seed.owner
      %li.list-group-item.d-flex.justify-content-between.align-items-center
        = link_to crop_seeds_path(crop) do
          = seed_icon
          View all #{crop.name} seeds
        %span.badge.badge-primary.badge-pill=crop.seeds.size

  %ul.list-group
    %li.list-group-item
      = link_to crop_ebay_seeds_url(crop),
               target: "_blank",
               rel: "noopener noreferrer" do
        = icon 'fas', 'money-check-alt'
        Purchase seeds via Ebay

    - if crop.approved?
      - if current_member
        %li.list-group-item
          = link_to "List #{crop.name} seeds to trade", new_seed_path(crop_id: crop.id)
      - else
        %li.list-group-item.active
          = icon 'fas', 'user'
          = render partial: 'shared/signin_signup', locals: { to: 'list your seeds to trade' }

.card
  .card-header
    %h5.card-title Find #{crop.name} seeds
  - if crop.seeds.empty?
    .card-body
      %p There are no seeds available to trade on Growstuff right now.
  - else
    %ul.list-group
      - crop.seeds.tradable.each do |seed|
        %li.list-group-item
          = link_to "#{seed.owner} will trade #{seed.tradable_to}.", seed_path(seed)
          = render 'members/location', member: seed.owner
      %li.list-group-item.d-flex.justify-content-between.align-items-center
        = link_to crop_seeds_path(crop) do
          = seed_icon
          View all #{crop.name} seeds
        %span.badge.badge-primary.badge-pill=crop.seeds.size

  %ul.list-group
    %li.list-group-item
      = link_to crop_ebay_seeds_url(crop),
               target: "_blank",
               rel: "noopener noreferrer" do
        = icon 'fas', 'money-check-alt'
        Purchase seeds via Ebay

    - if crop.approved?
      - if current_member
        %li.list-group-item
          = link_to new_seed_path(crop_id: crop.id) do
            = seed_icon
            List #{crop.name} seeds to trade
      - else
        %li.list-group-item.active
          = icon 'fas', 'user'
          = render partial: 'shared/signin_signup', locals: { to: 'list your seeds to trade' }

Add icon to find seeds
Add icon to find seeds

