<commit_before>%nav.navbar.navbar-expand-lg.navbar-dark.default-color.bg-dark
  %a.navbar-brand.d-xs-none{ href: root_path }
    = image_tag("growstuff-brand.png", size: "200x50", alt: ENV['GROWSTUFF_SITE_NAME'])
  %a.navbar-brand.d-none.d-xs{ href: root_path }
    = image_tag("growstuff-apple-touch-icon-precomposed.png",
                size: "40x40", alt: ENV['GROWSTUFF_SITE_NAME'])
  %button.navbar-toggler{"aria-controls" => "navbarSupportedContent", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarSupportedContent", "data-toggle" => "collapse", type: "button"}
    %span.navbar-toggler-icon
  #navbarSupportedContent.collapse.navbar-collapse
    %ul.navbar-nav.mr-auto
      %li.nav-item.dropdown
        %a.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"}= t('.crops')
        .dropdown-menu
          -# %a.dropdown-item{:href => "#"} Action
          -# %a.dropdown-item{:href => "#"} Another action
          -# %a.dropdown-item{:href => "#"} Something else here
          -# .dropdown-divider
          -# %a.dropdown-item{:href => "#"} Separated link
          = link_to t('.browse_crops'), crops_path, class: 'dropdown-item'
          = link_to t('.seeds'), seeds_path, class: 'dropdown-item'
          = link_to t('.plantings'), plantings_path, class: 'dropdown-item'
          = link_to t('.harvests'), harvests_path, class: 'dropdown-item'

      %li.nav-item.dropdown
        %a#navbarDropdown.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", href: "#", role: "button"}= t('.community')
        .dropdown-menu{"aria-labelledby" => "navbarDropdown"}
          = link_to t('.community_map'), places_path, class: 'dropdown-item'
          = link_to t('.browse_members'), members_path, class: 'dropdown-item'
          = link_to t('.posts'), posts_path, class: 'dropdown-item'
          = link_to t('.forums'), forums_path, class: 'dropdown-item'


      - if member_signed_in?
        %li.nav-item.dropdown
          %a#navbarDropdown.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", href: "#", role: "button"}
            - if current_member.notifications.unread_count.positive?
              = t('.your_stuff', unread_count: current_member.notifications.unread_count)
            - else
              = t('.current_memberlogin_name', current_memberlogin_name: current_member.login_name)
          .dropdown-menu{"aria-labelledby" => "navbarDropdown"}
            = link_to member_path(current_member) do
              = member_icon
              = t('.profile')
            = link_to member_gardens_path(current_member) do
              = garden_icon
              = t('.gardens')
            = link_to member_plantings_path(current_member) do
              = planting_icon
              = t('.plantings')
            = link_to member_harvests_path(current_member) do
              = harvest_icon
              = t('.harvest')
            = link_to member_seeds_path(current_member) do
              = seed_icon
              = t('.seeds')
            = link_to t('.posts'), member_posts_path(current_member)

            - if current_member.notifications.unread_count.positive?
              = link_to(t('.inbox_unread', unread_count: current_member.notifications.unread_count),
                        notifications_path)
            - else
              = link_to(t('.inbox'), notifications_path)
          - if current_member.role?(:crop_wrangler) || current_member.role?(:admin)
            %li.divider{ role: 'presentation' }
            - if current_member.role?(:crop_wrangler)
              %li= link_to t('.crop_wrangling'), wrangle_crops_path
            - if current_member.role?(:admin)
              %li= link_to t('.admin'), admin_path

        %li= link_to t('.sign_out'), destroy_member_session_path, method: :delete

      - else
        = link_to t('.sign_in'), new_member_session_path, id: 'navbar-signin'
        = link_to t('.sign_up'), new_member_registration_path, id: 'navbar-signup'


    = form_tag search_crops_path, method: :get, class: 'form-inline my-2 my-lg-0' do
      .input-group<commit_msg>Fix display of member menu<commit_after>%nav.navbar.navbar-expand-lg.navbar-dark.default-color.bg-dark
  %a.navbar-brand.d-xs-none{ href: root_path }
    = image_tag("growstuff-brand.png", size: "200x50", alt: ENV['GROWSTUFF_SITE_NAME'])
  %a.navbar-brand.d-none.d-xs{ href: root_path }
    = image_tag("growstuff-apple-touch-icon-precomposed.png",
                size: "40x40", alt: ENV['GROWSTUFF_SITE_NAME'])
  %button.navbar-toggler{"aria-controls" => "navbarSupportedContent", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarSupportedContent", "data-toggle" => "collapse", type: "button"}
    %span.navbar-toggler-icon
  #navbarSupportedContent.collapse.navbar-collapse
    %ul.navbar-nav.mr-auto
      %li.nav-item.dropdown
        %a.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"}= t('.crops')
        .dropdown-menu
          = link_to t('.browse_crops'), crops_path, class: 'dropdown-item'
          = link_to t('.seeds'), seeds_path, class: 'dropdown-item'
          = link_to t('.plantings'), plantings_path, class: 'dropdown-item'
          = link_to t('.harvests'), harvests_path, class: 'dropdown-item'

      %li.nav-item.dropdown
        %a#navbarDropdown.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", href: "#", role: "button"}= t('.community')
        .dropdown-menu{"aria-labelledby" => "navbarDropdown"}
          = link_to t('.community_map'), places_path, class: 'dropdown-item'
          = link_to t('.browse_members'), members_path, class: 'dropdown-item'
          = link_to t('.posts'), posts_path, class: 'dropdown-item'
          = link_to t('.forums'), forums_path, class: 'dropdown-item'


      - if member_signed_in?
        %li.nav-item.dropdown
          %a#navbarDropdown.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", href: "#", role: "button"}
            - if current_member.notifications.unread_count.positive?
              = t('.your_stuff', unread_count: current_member.notifications.unread_count)
            - else
              = t('.current_memberlogin_name', current_memberlogin_name: current_member.login_name)
          .dropdown-menu{"aria-labelledby" => "navbarDropdown"}
            = link_to member_path(current_member), class: 'dropdown-item' do
              = member_icon
              = t('.profile')
            = link_to member_gardens_path(current_member), class: 'dropdown-item' do
              = garden_icon
              = t('.gardens')
            = link_to member_plantings_path(current_member), class: 'dropdown-item' do
              = planting_icon
              = t('.plantings')
            = link_to member_harvests_path(current_member), class: 'dropdown-item' do
              = harvest_icon
              = t('.harvest')
            = link_to member_seeds_path(current_member), class: 'dropdown-item' do
              = seed_icon
              = t('.seeds')
            = link_to t('.posts'), member_posts_path(current_member)

            - if current_member.notifications.unread_count.positive?
              = link_to(t('.inbox_unread', unread_count: current_member.notifications.unread_count),
                        notifications_path)
            - else
              = link_to(t('.inbox'), notifications_path)
          - if current_member.role?(:crop_wrangler) || current_member.role?(:admin)
            %li.divider{ role: 'presentation' }
            - if current_member.role?(:crop_wrangler)
              %li= link_to t('.crop_wrangling'), wrangle_crops_path
            - if current_member.role?(:admin)
              %li= link_to t('.admin'), admin_path

        %li= link_to t('.sign_out'), destroy_member_session_path, method: :delete

      - else
        = link_to t('.sign_in'), new_member_session_path, id: 'navbar-signin'
        = link_to t('.sign_up'), new_member_registration_path, id: 'navbar-signup'


    = form_tag search_crops_path, method: :get, class: 'form-inline my-2 my-lg-0' do
      .input-group
{'fraction_non_alphanumeric': 0.15385523674577872, 'fraction_numerical': 0.002597709292714606, 'mean_word_length': 2.736215262461403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '1539328', 'n_tokens_mistral': 2753, 'n_tokens_neox': 2660, 'n_words': 432}