- content_for :breadcrumbs do
  - if @owner
    %li.breadcrumb-item= link_to 'Seeds', seeds_path
    %li.breadcrumb-item.active= link_to "#{@owner}'s seeds", seeds_path(owner: @owner)
  - else
    %li.breadcrumb-item.active= link_to 'Seeds', seeds_path

- content_for :title, title('seeds', @owner, @crop, @planting)

.row
  .col-md-2
    %h1
      = seed_icon
      = title('seeds', @owner, @crop, @planting)
    = render 'layouts/nav', model: Seed
    = link_to show_inactive_tickbox_path('seeds', owner: @owner, crop: @crop, show_all: @show_all) do
      = check_box_tag 'active', 'all', @show_all
      include finished
    %hr/
    - if @owner
      = render @owner
    - if @crop
      = render @crop

    %section.open-data
      %h2 Open Data
      %p= t('label.data')
      - ['csv', 'json', 'rss'].each do |format|
        .badge.badge-info
          = link_to (@owner ? member_seeds_path(@owner, format: format) : seeds_path(format: format)) do
            = icon 'fas', format.to_s
            = format.upcase
      .badge.badge-success= link_to 'API Methods', '/api-docs'
  .col-md-10
    %section
      %h2= title('seeds', @owner, @crop, @planting)
      = will_paginate @seeds
      - if @seeds.blank?
        %p No seeds recorded yet
      .index-cards
        - @seeds.each do |s|
          = render 'seeds/card', seed: s

      = will_paginate @seeds
