<commit_before>- content_for :title, @owner ? "#{@owner}'s gardens" : "Everyone's gardens"


%h1
  = @owner ? "#{@owner}'s gardens" : "Everyone's gardens"

= render 'layouts/nav', model: Garden

- content_for :breadcrumbs do
  - if @owner
    %li.breadcrumb-item= link_to 'Gardens', gardens_path
    %li.breadcrumb-item.active= link_to "#{@owner}'s gardens", member_gardens_path(@owner)
  - else
    %li.breadcrumb-item.active= link_to 'Gardens', gardens_path

= link_to gardens_active_tickbox_path(@owner, @show_all) do
  = check_box_tag 'active', 'all', @show_all
  include in-active

.pagination
  = page_entries_info @gardens
  = will_paginate @gardens


- if @gardens.empty?
  %p There are no gardens to display.
- else
  - @gardens.each do |garden|
    %section.border-top
      .row
        .col-md-2.border-right
          %h2
            %strong= link_to garden, garden
            = render 'gardens/actions', garden: garden
          %p
            = pluralize(garden.plantings.active.size, "planting")
        .col-md-10
          .row
            - if garden.plantings.empty?
              = garden_plant_something_button(garden, classes: 'btn btn-success')
            - else
              - garden.plantings.active.each do |planting|
                .col-6.col-md-4.col-lg-3= render 'plantings/card', planting: planting


.pagination
  = page_entries_info @gardens
  = will_paginate @gardens<commit_msg>Nicer display when there are not gardens<commit_after>- content_for :title, @owner ? "#{@owner}'s gardens" : "Everyone's gardens"


%h1
  = @owner ? "#{@owner}'s gardens" : "Everyone's gardens"

= render 'layouts/nav', model: Garden

- content_for :breadcrumbs do
  - if @owner
    %li.breadcrumb-item= link_to 'Gardens', gardens_path
    %li.breadcrumb-item.active= link_to "#{@owner}'s gardens", member_gardens_path(@owner)
  - else
    %li.breadcrumb-item.active= link_to 'Gardens', gardens_path

%section.border-top
  = link_to gardens_active_tickbox_path(@owner, @show_all) do
    = check_box_tag 'active', 'all', @show_all
    include in-active

- if @gardens.empty?
  %p There are no gardens to display.
  - if can?(:create, Garden) && @owner == current_member
    = link_to 'Add a garden', new_garden_path, class: 'btn btn-primary'

- else
  .row
    .col-12= page_entries_info @gardens
    .col-12= will_paginate @gardens
  - @gardens.each do |garden|
    %section.border-top
      .row
        .col-md-2.border-right
          %h2
            %strong= link_to garden, garden
            = render 'gardens/actions', garden: garden
          %p
            = pluralize(garden.plantings.active.size, "planting")
        .col-md-10
          .row
            - if garden.plantings.empty?
              = garden_plant_something_button(garden, classes: 'btn btn-success')
            - else
              - garden.plantings.active.each do |planting|
                .col-6.col-md-4.col-lg-3= render 'plantings/card', planting: planting


  .row
    .col-12= page_entries_info @gardens
    .col-12= will_paginate @gardens
{'fraction_non_alphanumeric': 0.12791844787898718, 'fraction_numerical': 0.007892140743176587, 'mean_word_length': 2.6650602409638555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3607711', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1028, 'n_words': 227}