<commit_before>- content_for :chapter_name
  | Local Welcome #{@chapter.name}
- content_for :page_title
  | Local Welcome #{@chapter.name} &ndash; upcoming events and details of our meet-up.
- unless @chapter.description.blank?
  - content_for :page_description
    = @chapter.description

.container
  .row
    .col-md-12
      h1
        = @chapter.name

  - if can? :manage, @chapter
    .row.col-md-12
      .buttons
        = link_to "Manage this chapter", admin_chapter_path(@chapter), class: "btn btn-default"
      - unless @chapter.description.blank?
        p.chapter-description = @chapter.description

  .row
    .col-md-6
      h2 Upcoming events
      - if @chapter.upcoming_events.published.any?
        - @chapter.upcoming_events.published.each_with_index do |event, i|
          p
            => link_to chapter_event_path(@chapter, event) do
              = short_friendly_date event.starts_at
              ':
              = event.name
            - if 0 == i
              span.info-label.bg-warning Our next event
      - else
        p.system.message No upcoming events

    .col-md-6
      h2 Past events
      - if @chapter.past_events.published.any?
        - @chapter.past_events.published.each do |event|
          p
            = link_to chapter_event_path(@chapter, event) do
              = short_friendly_date event.starts_at
              |:
              =< event.name
      - else
        p.system.message No past events

  .row
    .col-md-12
      h2 Get involved with Local Welcome #{@chapter.name}
      p Local Welcome is run entirely by volunteers. We need people who can give a few hours of their time to share their knowledge, skills, and friendliness with people who have arrived recently. Sign up for Local Welcome and you'll receive emails about our upcoming events, as well as details of the skills we're looking for.
      p
        - if user_signed_in?
          = render partial: "subscriptions/subscription_form", locals: { chapter: @chapter }
        - else
          = link_to "Sign up to Local Welcome #{@chapter.name}", new_user_registration_path(chapter: @chapter.id), class: "btn btn-primary btn-lg"

      p Not ready to sign up yet? #{ link_to "Learn more about Local Welcome first", how_it_works_path}.
<commit_msg>Fix a small layout bug when we displayed a form here.<commit_after>- content_for :chapter_name
  | Local Welcome #{@chapter.name}
- content_for :page_title
  | Local Welcome #{@chapter.name} &ndash; upcoming events and details of our meet-up.
- unless @chapter.description.blank?
  - content_for :page_description
    = @chapter.description

.container
  .row
    .col-md-12
      h1
        = @chapter.name

  - if can? :manage, @chapter
    .row.col-md-12
      .buttons
        = link_to "Manage this chapter", admin_chapter_path(@chapter), class: "btn btn-default"
      - unless @chapter.description.blank?
        p.chapter-description = @chapter.description

  .row
    .col-md-6
      h2 Upcoming events
      - if @chapter.upcoming_events.published.any?
        - @chapter.upcoming_events.published.each_with_index do |event, i|
          p
            => link_to chapter_event_path(@chapter, event) do
              = short_friendly_date event.starts_at
              ':
              = event.name
            - if 0 == i
              span.info-label.bg-warning Our next event
      - else
        p.system.message No upcoming events

    .col-md-6
      h2 Past events
      - if @chapter.past_events.published.any?
        - @chapter.past_events.published.each do |event|
          p
            = link_to chapter_event_path(@chapter, event) do
              = short_friendly_date event.starts_at
              |:
              =< event.name
      - else
        p.system.message No past events

  .row
    .col-md-12
      h2 Get involved with Local Welcome #{@chapter.name}
      p Local Welcome is run entirely by volunteers. We need people who can give a few hours of their time to share their knowledge, skills, and friendliness with people who have arrived recently. Sign up for Local Welcome and you'll receive emails about our upcoming events, as well as details of the skills we're looking for.
      p
        - if user_signed_in?
          = render partial: "subscriptions/subscription_form", locals: { chapter: @chapter }
        - else
          = link_to "Sign up to Local Welcome #{@chapter.name}", new_user_registration_path(chapter: @chapter.id), class: "btn btn-primary btn-lg"

  .row
    .col-md-12
      p Not ready to sign up yet? #{ link_to "Learn more about Local Welcome first", how_it_works_path}.

{'fraction_non_alphanumeric': 0.0891153512575889, 'fraction_numerical': 0.006071118820468344, 'mean_word_length': 2.290299572039943, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6180360', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1304, 'n_words': 418}